Expand all

mw.widgets.ComplexNamespaceInputWidget

Displays a dropdown box with the choice of available namespaces, plus two checkboxes to include associated namespace or to invert selection.

Extends

Constructor

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

Create an instance of mw.widgets.ComplexNamespaceInputWidget.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Description
namespace Object

Configuration for the NamespaceInputWidget dropdown with list of namespaces

Properties:
Name Type Description
includeAllValue string

If specified, add a "all namespaces" option to the dropdown, and use this as the input value for it

invert Object

Configuration for the "invert selection" CheckboxInputWidget. If null, the checkbox will not be generated.

associated Object

Configuration for the "include associated namespace" CheckboxInputWidget. If null, the checkbox will not be generated.

invertLabel Object

Configuration for the FieldLayout with label wrapping the "invert selection" checkbox

Properties:
Name Type Description
label string

Label text for the label

associatedLabel Object

Configuration for the FieldLayout with label wrapping the "include associated namespace" checkbox

Properties:
Name Type Description
label string

Label text for the label

Source:

Methods