EasyUI Forum

General Category => General Discussion => Topic started by: Alfred on July 20, 2018, 04:11:58 AM



Title: Programatically open window in Easyui Desktop
Post by: Alfred on July 20, 2018, 04:11:58 AM
How do I programmatically open a window using js in Easyui Desktop. In some case, I would like to open a window using js instead of clicking the icon on the desktop.

Please help.

Thanks and regards
Alfred


Title: Re: Programatically open window in Easyui Desktop
Post by: jarry on July 20, 2018, 05:18:50 AM
Call the openApp method to open a window.
Code:
$('body').desktop('openApp', {
icon: 'images/win.png',
name: 'About',
width: 400,
height: 200,
href: '_about.html'
})