mehmet07 Posted January 4, 2014 Posted January 4, 2014 Hi, How add accordion layout? (http://ext4all.com/post/how-to-change-the-header-s-height-of-accordion) Quote
Sherzod Posted January 4, 2014 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
mehmet07 Posted January 4, 2014 Author Posted January 4, 2014 How can I add a button or (other component ) to the panel.? Quote
ganzqgy Posted January 5, 2014 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
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.