EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on September 18, 2014, 03:18:36 AM



Title: Adding tools to Window
Post by: aswzen on September 18, 2014, 03:18:36 AM
is it possible to add a tools to jEasyUI window?

i know window was extended from $.fn.panel.defaults...
but i can't figure out how to make the tools attached to window header...

the code below isnt working...
Code:
<div id="preview_tools">
    <a href="javascript:void(0)" class="icon-print" onclick="alert()" title="Print"></a>
</div>
<div id="w" class="easyui-window" data-options="modal:true,closed:false" style="width:965px;height:500px;">
    <div id="pp" style="width:300px;height:200px;padding:10px;" tools="#preview_tools">
    </div>
</div>

here the fiddle
http://jsfiddle.net/7jdES/12/

thanks in advance...


Title: Re: Adding tools to Window
Post by: stworthy on September 18, 2014, 06:00:37 AM
Please refer to the updated example http://jsfiddle.net/7jdES/13/


Title: Re: Adding tools to Window
Post by: aswzen on September 18, 2014, 07:18:06 PM
wow thank you...
 :D