Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
module:ddlightbarmenu.js [2018/03/25 12:42] – Added details, and formatting similar to the JavaScript Object Model documentation pages nightfox | module:ddlightbarmenu.js [2018/03/26 10:19] – Updated the description of the GetVal() method nightfox |
---|
| RemoveItemHotkeys | void | DDLightbarMenu.RemoveItemHotkeys(idx) | Removes all hotkeys from a menu item | | | RemoveItemHotkeys | void | DDLightbarMenu.RemoveItemHotkeys(idx) | Removes all hotkeys from a menu item | |
| RemoveAllItemHotkeys | void | DDLightbarMenu.RemoveAllItemHotkeys() | Removes all hotkeys from all menu items | | | RemoveAllItemHotkeys | void | DDLightbarMenu.RemoveAllItemHotkeys() | Removes all hotkeys from all menu items | |
| GetVal | various | DDLightbarMenu.GetVal(draw) | Waits for user input, then gets the value of the item selected by the user. The 'draw' parameter is a boolean that specifies whether or not to draw the item first (defaults to true). If the menu is in multi-select mode, this method will return an array of the chosen values; otherwise, this method will return the single value selected by the user. | | | GetVal | various | DDLightbarMenu.GetVal(draw) | Waits for user input, then gets the value of the item selected by the user. The 'draw' parameter is a boolean that specifies whether or not to draw the menu first (defaults to true). The return value type will be as follows:\\ * If in multi-select mode, this method will return an array of the chosen values.\\ * If in single-select mode, this method will return the single value selected by the user.\\ * If the user exited the menu without choosing (i.e., with ESC), this method will return null. | |
| SetPos | void | DDLightbarMenu.SetPos(x, y) | Sets the menu's position, by the upper-left corner X and Y coordinates | | | SetPos | void | DDLightbarMenu.SetPos(x, y) | Sets the menu's position, by the upper-left corner X and Y coordinates | |
| SetSize | void | DDLightbarMenu.SetSize(size) | Sets the menu's size. The 'size' parameter is an object with the properties 'width' and 'height', specifying the menu's width and height. | | | SetSize | void | DDLightbarMenu.SetSize(size) | Sets the menu's size. The 'size' parameter is an object with the properties 'width' and 'height', specifying the menu's width and height. | |