EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Stefan B. on June 30, 2014, 01:57:11 AM



Title: Preloading Tabs in background?
Post by: Stefan B. on June 30, 2014, 01:57:11 AM
Hello, I have a little question.
Is it possible to preload tab pages in background?


Title: Re: Preloading Tabs in background?
Post by: stworthy on June 30, 2014, 02:41:01 AM
If you set 'href' property for a tab panel, it does not load its content until this panel is selected. To load the content of a hidden tab panel, please call 'refresh' method manually on this panel.
Code:
var p =$('#tt').tabs('getTab', index);
p.panel('refresh');


Title: Re: Preloading Tabs in background?
Post by: Stefan B. on June 30, 2014, 03:02:21 AM
THX. This is working fine