mehmet07 Posted January 4, 2014 Share Posted January 4, 2014 Hi, How add accordion layout? (http://ext4all.com/post/how-to-change-the-header-s-height-of-accordion) Link to comment Share on other sites More sharing options...
Sherzod Posted January 4, 2014 Share Posted January 4, 2014 Hi. Try this: UniPanel1 -> ClientEvents -> UniEvents add beforeInit function beforeInit(sender) { sender.layout = 'accordion'; sender.items = [{ title: 'Panel 1', html: 'Panel 1 content' }, { title: 'Panel 2', html: 'Panel 2 content' }, { title: 'Panel 3', html: 'Panel 3 content' }]; } Link to comment Share on other sites More sharing options...
mehmet07 Posted January 4, 2014 Author Share Posted January 4, 2014 thanks Delphi Developer. Link to comment Share on other sites More sharing options...
mehmet07 Posted January 4, 2014 Author Share Posted January 4, 2014 How can I add a button or (other component ) to the panel.? Link to comment Share on other sites More sharing options...
ganzqgy Posted January 5, 2014 Share Posted January 5, 2014 Ext.create('Ext.button.Cycle', { showText: true, prependText: 'View as ', renderTo: 'abcd',//html: '<div id="abcd"><div>' menu: { id: 'view-type-menu', items: [{ text: 'text only', iconCls: 'view-text', checked: true },{ text: 'HTML', iconCls: 'view-html' }] }, changeHandler: function(cycleBtn, activeItem) { Ext.Msg.alert('Change View', activeItem.text); }}); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now