Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
custom:javascript:lib:ddlightbarmenu.js [2018/04/05 09:43] – created nightfox | custom:javascript:lib:ddlightbarmenu.js [2018/12/27 21:05] – DDLightbarMenu.js was renamed to dd_lightbar_menu.js nightfox | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | DDLightbarMenu.js is a loadable JavaScript file that provides a lightbar menu class for use in JavaScript scripts for Synchronet. | + | dd_lightbar_menu.js is a loadable JavaScript file that provides a lightbar menu class for use in JavaScript scripts for Synchronet. |
\\ | \\ | ||
The user can navigate the list using the up & down arrows, PageUp, PageDown, Home, and End keys. The enter key selects an item. The ESC key will exit the menu and return null. This menu library requires the use of an ANSI terminal. | The user can navigate the list using the up & down arrows, PageUp, PageDown, Home, and End keys. The enter key selects an item. The ESC key will exit the menu and return null. This menu library requires the use of an ANSI terminal. | ||
- | This script | + | dd_lightbar_menu.js |
**DDLightbarMenu methods** | **DDLightbarMenu methods** | ||
Line 64: | Line 64: | ||
Example usage: | Example usage: | ||
- | load("DDLightbarMenu.js"); | + | load("dd_lightbar_menu.js"); |
// Create a menu at position 1, 3 with width 45 and height of 10 | // Create a menu at position 1, 3 with width 45 and height of 10 | ||
var lbMenu = new DDLightbarMenu(1, | var lbMenu = new DDLightbarMenu(1, |