View Full Version : containers inside a toolbar

1 Sep 2015, 1:40 AM
i need 2 containers inside a toolbar.

var mybar = new Ext.Toolbar({
items: [{
xtype: 'container'
items: [{
xtype: 'button',
text: 'search by date',
handler: function () {
var me = this;
xtype: 'container',
items: [{
xtype: 'textfield',
hidden: true,
itemId: 'byDateText'

by clicking button a container having textfield should appear..i cannot achieve this in extjs 2.3, nd i am also new to extjs..plz can any1 help me out...
the toolbar button is for filtering store acc. to its fields. all that is working.

1 Sep 2015, 1:44 AM
I am using the toolbar in grid as,

tbar: mybar

the issue is that there is no 'items' configs in 2.3 extjs
also if i want to horizontally and vertically set the layout. both containers a re to be vbox layout. but this option is not present in 2.3
nd i have to use only 2.3. is it possible

2 Sep 2015, 2:57 PM
Take a look at this to see what elements can be added to a Toolbar: http://docs.sencha.com/extjs/2.3.0/#!/api/Ext.Toolbar-method-add