mw.widgets.NamespaceInputWidget(configopt)

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
Name Type Attributes Default Description
includeAllValue string | null <optional>

Value for "all namespaces" option, if any

userLang boolean <optional>
false

Display namespaces in user language

exclude Array.<number> <optional>

List of namespace numbers to exclude from the selector

Source:
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

Source:

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
Source: