View Full Version : How add div to window??
Hi
I've got Ext.Window with some form.
I've got there some button. When I click button some actions are done, and I want show some
text next to the button. How can I add some div next to the button???
Best Regards
chawlueliu
9 Apr 2008, 12:07 AM
we use Window's bbar : Object/Array (The bottom toolbar of the panel. )
and use style to set the buttom, and set the button's handler.
You also can use Ext.Toolbar.addClass( string cls ) (Adds a CSS class to the component's underlying element) to add some css class to the buttons.
bar.addButton( {
style: 'margin:2px;font-size: 12px',
text:'test',
handler:function(){
alert('test');
}
});
bar.addSeparator();
if yout want Window's buttons style or result ,maybe you just only use the column layout and add Ext.Button to window's(or panel's ) items.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.