Simply ListBox
Example of simple listbox widget
by molecule
HTML
<script src="http://cdn.sencha.io/ext-4.1.0-gpl/ext-all.js"></script>
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.1.0-gpl/resources/css/ext-all.css">
<script src="https://raw.github.com/molecule-man/ExtJsListbox/master/ListBox.js"></script>
<link rel="stylesheet" href="https://raw.github.com/molecule-man/ExtJsListbox/master/css/listbox.css">
JavaScript
Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data:{'items':[
{ 'name': 'Lisa', "email":"[email protected]", "phone":"555-111-1224" },
{ 'name': 'Bart', "email":"[email protected]", "phone":"555-222-1234" },
{ 'name': 'Homer', "email":"[email protected]", "phone":"555-222-1244" },
{ 'name': 'Marge', "email":"[email protected]", "phone":"555-222-1254" }
]},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});
Ext.create('Ext.ux.listbox.ListBox', {
store: 'simpsonsStore',
displayField: 'email',
width: 200,
height: 200,
renderTo: Ext.getBody()
});