EasyUI Forum
May 15, 2024, 07:46:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Programatically open window in Easyui Desktop  (Read 5711 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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'
})
Logged
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!