Remoto - VFS
|
Manages context menus or any other menu. More...
#include "remoto!stdlib:js/paneManager/paneMenu.js"
Public Member Functions | |
menuManager () | |
Construct a menu manager. More... | |
createMenu (m, p, subscribe) | |
Create a paneMenu(). You will want to use paneMenu.addItem() on the resulting object. More... | |
getMenu (m) | |
openMenu (m, b, p, d, c) | |
Open a menu. More... | |
removeMenu (m) | |
resetMenus () | |
DOCME. More... | |
Manages context menus or any other menu.
These will act as a modal, but the interface will hide that.
Menus have names. The name can be generic if it is for multiple purposes, but it can also be specific, using a uuid, path, database ID, or other uniqueness mechanism.
menuManager | ( | ) |
Construct a menu manager.
This will, by default, be an empty list of menus.
createMenu | ( | m, | |
p, | |||
subscribe | |||
) |
Create a paneMenu(). You will want to use paneMenu.addItem() on the resulting object.
m | The unique menu name, if it exists |
p | The path of the menu, if it is to be connected to the VFS |
subscribe | This menu is a listing of a VFS directory. Subscribe to it. |
getMenu | ( | m | ) |
m |
DOCME
openMenu | ( | m, | |
b, | |||
p, | |||
d, | |||
c | |||
) |
Open a menu.
m | The id of the menu to open |
b | The dom element or event to get position data from |
p | The positioning style... one of ["T","R","B","L"] against the element or event |
d | Additional data to pass to the menu modal. |
c | A callback for when the menu closes |
Menus must be defined by name in the menuManager. Once defined, this method will open and position the menu.
removeMenu | ( | m | ) |
m | DOCME |
resetMenus | ( | ) |
DOCME.