EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: yogesh on February 07, 2013, 05:43:00 AM



Title: change layout panel header dynamicaly
Post by: yogesh on February 07, 2013, 05:43:00 AM
 I want to add layout panel header dynamically how to achieve this 

 currently i am using below tag

 "<div data-options="region:'center',title:'Object Display',iconCls:'icon-ok'">"


in documentation code is given for add new panel

$('#cc').layout('add',{ 
    region: 'west', 
    width: 180, 
    title: 'West Title', 
    split: true, 
    tools: [{ 
        iconCls:'icon-add', 
        handler:function(){alert('add')} 
    },{ 
        iconCls:'icon-remove', 
        handler:function(){alert('remove')} 
    }] 
});

Thanks!


Title: Re: change layout panel header dynamicaly
Post by: Stefan B. on July 04, 2014, 01:45:23 AM
This is an good question.
I have not seen any example that shows how include customer tools in a layout panel header


Title: Re: change layout panel header dynamicaly
Post by: Pierre on February 16, 2015, 07:50:08 AM
I know it is Old topic but maybe it will help to someone as it helped to me (Subject is very clear) and solution is here:
http://www.jeasyui.com/forum/index.php?topic=1813.0