Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define("Test.view.Main", {
- extend: 'Ext.tab.Panel',
- config: {
- tabBarPosition: 'bottom',
- items: [ ]
- },
- constructor : function(){
- this.callParent(arguments);
- var store = Ext.create('Ext.data.Store',{
- data :[
- {title : 'One'},
- {title : 'Two'},
- {title : 'Three'}
- ]
- }),
- firstList = Ext.create('Ext.List',{
- title : 'tab1',
- store : store,
- itemTpl : '{title}',
- onItemDisclosure : function(){
- store.add({title : 'Four'});
- }
- }),
- secondList = Ext.create('Ext.List',{
- title : 'tab2' ,
- store : store,
- itemTpl : '{title}'
- }),
- thirdList = Ext.create('Ext.List',{
- title : 'tab3',
- store : store,
- itemTpl : '{title}'
- });
- this.add([
- firstList,
- secondList,
- thirdList
- ]) ;
- }
- });
- storeEventHooks: {
- beforeload: 'onBeforeLoad',
- load: 'onLoad',
- refresh: 'refresh',
- addrecords: 'onStoreAdd',
- removerecords: 'onStoreRemove',
- updaterecord: 'onStoreUpdate'
- }
Add Comment
Please, Sign In to add comment