parky128
8 Feb 2012, 8:40 AM
Hi,
I cant add a toolbar as a docked item directly to a List component in designer. Here is some non designer UI code I am trying to re-produce:
Ext.define('PinpointersTouch.view.UnitList', {
extend: 'Ext.dataview.List',
xtype: 'unitslist',
emptyText: 'There are no vehicles in your tracking list.',
config: {
itemTpl: new Ext.XTemplate(...),
store: 'CurrentGrid',
items: [{
xtype: 'toolbar',
docked: 'bottom',
ui: 'light',
items: [{
xtype: 'label',
html: 'Show:',
style: 'color:white;'
},{
xtype: 'selectfield',
store: 'TrackingListWithShowAll',
displayField: 'UnitName',
valueField: 'UntID',
itemId: 'selectVehicle'
}]
}]
}
});
Do I need to use a Container first and then add a List component and the toolbar as a docked item instead?
I cant add a toolbar as a docked item directly to a List component in designer. Here is some non designer UI code I am trying to re-produce:
Ext.define('PinpointersTouch.view.UnitList', {
extend: 'Ext.dataview.List',
xtype: 'unitslist',
emptyText: 'There are no vehicles in your tracking list.',
config: {
itemTpl: new Ext.XTemplate(...),
store: 'CurrentGrid',
items: [{
xtype: 'toolbar',
docked: 'bottom',
ui: 'light',
items: [{
xtype: 'label',
html: 'Show:',
style: 'color:white;'
},{
xtype: 'selectfield',
store: 'TrackingListWithShowAll',
displayField: 'UnitName',
valueField: 'UntID',
itemId: 'selectVehicle'
}]
}]
}
});
Do I need to use a Container first and then add a List component and the toolbar as a docked item instead?