Expand all

mw.widgets.NamespaceInputWidget

Displays a dropdown box with the choice of available namespaces.

Extends

Constructor

new mw.widgets.NamespaceInputWidget([config]) #

Create an instance of mw.widgets.NamespaceInputWidget.

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:

Methods

getNamespaceDropdownOptions([config]) → {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:

Properties:

Name Type Description
data any
label string
Source: