View Full Version : Does typeAhead function well??

20 May 2014, 8:46 PM
I found something, I am studying ext js.
I think typeAhead attribute of combo does not function well.
I can't confirm auto-completing feature of typeAhead attribute.

var mySimpleStore = {
type: 'array',
fields: ['name'],
data: [
['Jack Slocum'],
['Abe Elias'],
['Aaron Conarn'],
['Evan Trimboli']

var combo = {
xtype: 'combo',
fieldLabel: 'Select a name',
store: mySimpleStore,
displayField: 'name',
typeAhead: true,
mode: 'local'

Ext.create('Ext.form.Panel', {
bodyStyle: 'padding: 10px;',
width: 400,
height: 300,
title: 'Test',
items: combo,
renderTo: Ext.getBody()

I need any help. thanks

20 May 2014, 9:09 PM
My fault. No problem.I used wrong attribute mode instead of queryMode