EasyUI Forum
September 13, 2025, 02:18:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Adding tools to Window  (Read 8436 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« 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...
« Last Edit: September 18, 2014, 03:32:36 AM by Agus Sigit Wisnub » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 18, 2014, 06:00:37 AM »

Please refer to the updated example http://jsfiddle.net/7jdES/13/
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: September 18, 2014, 07:18:06 PM »

wow thank you...
 Cheesy
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!