new mw.widgets.NamespaceInputWidget(configopt)
#
Namespace input widget. Displays a dropdown box with the choice of available namespaces.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Configuration options Properties
|
Namespace input widget.
Extends
Methods
getNamespaceDropdownOptions(configopt) → {Array.<DropdownOptions>}static
#
Get a list of namespace options, sorted by ID.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
<optional> |
Configuration options |
Returns:
Dropdown options
- Type
- Array.<DropdownOptions>
Get a list of namespace options, sorted by ID.
Type Definitions
DropdownOptions
#
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
data |
any | |
label |
string |