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) Quote 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' }]; } Quote Link to comment Share on other sites More sharing options...
mehmet07 Posted January 4, 2014 Author Share Posted January 4, 2014 thanks Delphi Developer. Quote 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.? Quote 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); }}); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.