Class ox.Configuration.EditableList
Extends
ox.UI.Widget.
An editable list with "Add" and "Remove" buttons in the menu.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ox.Configuration.EditableList(section, height, label)
|
- Fields borrowed from class ox.UI.Widget:
- default_value, enabled, formnode, initialized, isEnabled, isVisible, node, parent, visible, width
Method Attributes | Method Name and Description |
---|---|
add(cont)
This method is called when the "Add" button is clicked.
|
|
The text which is displayed in the list when it contains no entries.
|
|
getText(elem)
A callback function which is used to extract a human-readable
description from an array element of the value.
|
- Methods borrowed from class ox.UI.Widget:
- addContent, applyEnabled, applyVisible, disable, enable, get, hide, remove, resize, set, setEnabled, setParent, setVisible, show
Class Detail
ox.Configuration.EditableList(section, height, label)
- Parameters:
- {I18nString} section
- Name of the menu section.
- {String} height
- The height of the list as a CSS length.
- {I18nString} label
- An optional label for the list.
Method Detail
add(cont)
This method is called when the "Add" button is clicked.
- Parameters:
- {Function} cont
- A callback function which should be called with an array of new elements as parameter.
{I18nString}
emptyText()
The text which is displayed in the list when it contains no entries.
{String}
getText(elem)
A callback function which is used to extract a human-readable
description from an array element of the value. This description is
displayed in the list. The default implementation handles I18nString
objects and plain strings.
- Parameters:
- elem
- The array element from which to extract the description.
- Returns:
- A textual description of the specified element.