PDA

View Full Version : Is it possible to hide separator with the button?



ser
14 Feb 2011, 6:03 AM
this.bbar = [
{
text:'Approve',
name: 'approve',
iconCls: 'approve'
},'-',
{
text:'Save',
name: 'save',
iconCls: 'save'
}
]


If we hide SAVE button, then separator would be superfluous, but how it's hide, too?

ser
14 Feb 2011, 6:18 AM
{
xtype: 'tbseparator',
name: 'separator',
}
...


var toolBar = this.getBottomToolbar();
var s = toolBar.find('name', 'separator')[0];
s.setVisible(false);


sorry for the stupid question