Synchronet v3.17b-Win32 (install) has been released (Jan-2019).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

custom:javascript:lib:ddlightbarmenu.js [2018/04/05 09:43]
nightfox created
custom:javascript:lib:ddlightbarmenu.js [2018/12/27 21:05] (current)
nightfox DDLightbarMenu.js was renamed to dd_lightbar_menu.js
Line 1: Line 1:
-====== ​DDLightbarMenu.js ====== +====== ​dd_lightbar_menu.js ====== 
-DDLightbarMenu.js is a loadable JavaScript file that provides a lightbar menu class for use in JavaScript scripts for Synchronet. ​ DDLightbarMenu supports single item selection and multiple item selection. ​ For one example of how to use DDLightbarMenu,​ you can look at the code for ''​[[howto:​door:​slyvote]]''​.\\+dd_lightbar_menu.js is a loadable JavaScript file that provides a lightbar menu class for use in JavaScript scripts for Synchronet.  ​The DDLightbarMenu ​class supports single item selection and multiple item selection. ​ For one example of how to use DDLightbarMenu,​ you can look at the code for ''​[[howto:​door:​slyvote]]''​.\\
 \\ \\
 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. ​ By default, this menu library does not display a border around the menu.  If you want this library to draw a border around the menu, you can set the borderEnabled property to true.  Without a border, the menu gains 2 characters of width and 2 lines of height. 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. ​ By default, this menu library does not display a border around the menu.  If you want this library to draw a border around the menu, you can set the borderEnabled property to true.  Without a border, the menu gains 2 characters of width and 2 lines of height.
  
-This script ​provides a class, DDLightbarMenu. ​ To create a new DDLightbarMenu object: new DDLightbarMenu(x,​ y, width, height);+dd_lightbar_menu.js ​provides a class, DDLightbarMenu. ​ To create a new DDLightbarMenu object: new DDLightbarMenu(x,​ y, width, height);
  
 **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,​ 3, 45, 10);   var lbMenu = new DDLightbarMenu(1,​ 3, 45, 10);

In Other Languages