EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on November 19, 2015, 03:45:12 PM



Title: navpanel info
Post by: roberto on November 19, 2015, 03:45:12 PM
Is there any documentation about navpanel?


Title: Re: navpanel info
Post by: stworthy on November 21, 2015, 07:15:36 AM
The navpanel is a special panel with fullscreen and no border. It acts as a top panel in a mobile application.


Title: Re: navpanel info
Post by: roberto on November 21, 2015, 08:58:19 AM
thanks for your answer.
Yes, I know it. I would like to know how to create it at runtime.
I'am using
Code:
$('body').append('<div id="np"></div>');
$('#np').navpanel();
but I would like to get it from a .php file like I do with refresh method of panel.
All that I can load from an external file is its content but not the header, toolbar, title, etc..
Is it possible?


Title: Re: navpanel info
Post by: stworthy on November 22, 2015, 02:42:20 AM
Please include the 'jquery.easyui.mobile.js' file to the page before using the navpanel plugin. Be sure to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.4-patch.zip.
Code:
$('body').append('<div id="np"></div>');
$('#np').navpanel({
  href: ...
});