Last modified: Mon, 04/03/2017 - 17:29
Creates a selector from a JSON object.
Overview
HTML pages are full of Select menus and this widget provides an easyway to have menus created dynamically, perhaps from informationobtained from a server with an AJAX style request.
The MenuWidget object manages the initialization and rendering of a Selector so that new MenuWidgets may be created at will when required by a user interface.
The MenuWidget object is initialized with a Menu object that consists of an array of [text, value] pairs.
Menu : [
[text_0,value_0],
[text_1,value_1],
...
[text_N,value_N]
]
Documentation & Source
- API
- $LAS_HOME/WebContent/JavaScript/components/MenuWidget.js