Extends
Constructor
new ve.ui.MWSettingsPage(name, [config])
#
MediaWiki meta dialog settings page.
Methods
checkValidRedirect() → {boolean}
#
Returns:
Whether redirect link is valid.
- Type
- boolean
getMetaItem(name) → {Object|null
}
#
null
}
#
Get the first meta item of a given name
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the meta item |
Returns:
Meta item, if any
- Type
-
Object
|
null
Get the first meta item of a given name
onEnableRedirectChange(value)
#
Handle redirect state change events.
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | Whether a redirect is to be set for this page |
Handle redirect state change events.
onEnableStaticRedirectChange()
#
Handle static redirect state change events.
Handle static redirect state change events.
onRedirectTargetChange()
#
Handle redirect target change events.
Handle redirect target change events.
onTableOfContentsFieldChange()
#
Handle Table Of Contents display change events.
Handle Table Of Contents display change events.
setup(fragment, config) → {jQuery.Promise}
#
Setup settings page.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fragment |
ve.dm.SurfaceFragment | Surface fragment |
|||||||||||||||
config |
Object |
Properties:
|
Returns:
- Type
- jQuery.Promise
Setup settings page.
setupOutlineItem()
#
teardown([data])
#
Tear down settings page.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Object |
optional |
Dialog tear down data |
Tear down settings page.
addMetaCheckbox(metaName, label)static
#
Add a checkbox to the list of changeable page settings
Parameters:
Name | Type | Description |
---|---|---|
metaName |
string | The name of the DM meta item |
label |
string | The label to show next to the checkbox |
Add a checkbox to the list of changeable page settings