EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: serit on June 12, 2023, 07:29:56 AM



Title: Desktop - Context Menu & Icons
Post by: serit on June 12, 2023, 07:29:56 AM
Hi there.

Is it possible to have context menu in desktop icons (icon.png)?
Is it possible to keep fixed desktop icons?
Is it possible to have context menus on minimized window to click in window on taskbar to restore, minimize, maximize ou close (taskbar.png)?
Is it possible to show window when we click on the window listed in taskbar? Because if we have multiple windows, if you click on window in taskbar, it minimizes instead of show on front of others windows.
Is it possible to have context menu in the rest of taskbar to choose windows showing like Cascade or Tile (cascade.png)

Thanks in advance


Title: Re: Desktop - Context Menu & Icons
Post by: jarry on June 15, 2023, 07:52:44 PM
The context menu is available now. Please download the latest version from https://www.jeasyui.com/extension/desktop.php.
Code:
$('body').desktop({
    ...
    onShortcutContextMenu: function(e,app){
        e.preventDefault();
        $('#menu1').menu('show', {left:e.pageX,top:e.pageY});
    }

})