am having issue designing and getting a search field to work, i don't know how to get this working, i can see any documentation or sample code on Sencha Touch 2. any help will be appreciated. this my current stage:
`Ext.define('ikhlas.view.SearchProfile', {
extend: 'Ext.Panel',
xtype: 'searchpanel',
config:{
title: 'Search',
iconCls: 'search',
scrollable: true,
styleHtmlContent: true,
items: [
{
xtype: 'fieldset',
title:'Search Profile',
iconCls:'add',
items: [
{
xtype: 'searchfield',
name:'searchfield',
placeHolder:'Search',
},
]
},
]
}
});`
And my controller looks like this (Noting has been done, i don't know how to start help pls):
Ext.define('ikhlas.controller.SearchField',{
extend: 'Ext.app.Controller',
config:{
refs:{
submitpanel:'loginpanel'
},
control:{
}
},
});
And here are the list of Data's i want to Auto search:
data: [
{firstName: 'Tommy', lastName: 'Maintz'},
{firstName: 'Rob', lastName: 'Dougan'},
{firstName: 'Ed', lastName: 'Spencer'},
{firstName: 'Jamie', lastName: 'Avins'},
{firstName: 'Aaron', lastName: 'Conran'},
{firstName: 'Dave', lastName: 'Kaneda'},
{firstName: 'Michael', lastName: 'Mullany'}
i want the search field to work in such a way that as the user is typing in character, it will auto pop suggestion just like: http://docs.sencha.com/touch/2-0/#!/example/search-list