I have the following Sencha App Nested List which comprise of a toolbar button.
Whenever I click on any list item, I need to remove the Button which says "Tab Bar" in the lists which follows. As you can see, the button is still there which I need to remove.
Heres my view code
Sencha View Folder
Main.js
Ext.define('firstApp.view.Main', {
extend : 'Ext.Container',
xtype : 'main',
requires: [
'Ext.TitleBar',
'Ext.Button',
'firstApp.model.item',
'firstApp.store.nList',
'Ext.dataview.NestedList',
'Ext.data.TreeStore'
//'Ext.ToolBar'
] ,
config : {
fullscreen : true,
layout : 'fit',
items : [{
xtype : 'nestedlist',
title: 'List View',
displayField : 'text',
store : 'nList',
//toolbar:{
toolbar:{
items :[
{
xtype : 'spacer'
},
{
xtype : "button",
text : 'Tab View',
align: 'right',
ui : "action",
handler: function(){
Ext.Viewport.animateActiveItem((
Ext.create('firstApp.view.view2')),
{type: 'slide', direction:'left'}).show();
}
}
]
}
}
]
}
});
How should I go about it? Kindly Help me out