EasyUI Forum
November 06, 2025, 12:42:09 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Get tab by option value on: November 29, 2014, 03:33:52 AM
Hi
When I create a tab, I add a special option
Code:
var opt = { title: "...", mySpecialOption : 9 };
$("#tt").tabs('add', opt);

How do I obtain a reference to a tab by 'mySpecialOption'? I. E.
Code:
var tab = getTab(9); /* Should return a reference to the tab created above */


Thanks.
2  General Category / EasyUI for jQuery / Re: Load easyui-window markup only when needed on: November 25, 2014, 09:36:35 AM
Thanks for the sample code, that's exactly how I do it. I thought there was some easyui specific way of doing this, that is why I asked.

My window contains several buttons the user can click to perform certain tasks, that is why I need a event listener for the window.

3  General Category / EasyUI for jQuery / Re: Load easyui-window markup only when needed on: November 25, 2014, 03:42:10 AM
Thanks!!
The html nodes that make up the window are added to the DOM after page load ... so I guess I have to observe events (e. g. 'click') inside the <window> with jQuery's delegate function .on().

Does easyui offer a solution for that? That'd be great.




4  General Category / EasyUI for jQuery / Load easyui-window markup only when needed on: November 24, 2014, 11:40:46 AM
I have a easyui-window with lots of content. However, the window is rarely needed in my application.
Because of that I would like to load the code <div class=easyui-window>(lots of stuff here)</div> not on page load, but only when the user needs it.
How is this best done with easyui? Thanks!  Smiley Smiley
5  General Category / EasyUI for jQuery / Re: Change icons of tree widget on: November 24, 2014, 11:24:12 AM
Thank you for the link.
So the icon type is configured in the JSON passed to the widget?
6  General Category / EasyUI for jQuery / Change icons of tree widget on: November 24, 2014, 07:02:30 AM
How do I change the icons tree widget displays in front of its nodes? I am aware that I could modify the CSS, but I am looking for 'best practises'.
Thanks!  Smiley


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!