Extends
Constructor
new ve.ui.MWLanguagesPage(name, [config])
#
MediaWiki meta dialog Languages page.
Methods
getAllLanguageItems() → {jQuery.Promise}
#
Get array of language items from meta list
getFieldsets() → {Array.<OO.ui.FieldsetLayout>}
#
Get the fieldsets whose widgets the dialog watches for changes.
Returns:
Fieldsets
- Type
- Array.<OO.ui.FieldsetLayout>
- Overrides:
- Source:
Get the fieldsets whose widgets the dialog watches for changes.
isValid() → {boolean|jQuery.Promise}
#
Check whether the page's settings are valid.
Returns:
Whether the settings are valid, or a promise resolving to that
- Type
- boolean | jQuery.Promise
- Inherited from:
- Source:
Check whether the page's settings are valid.
onAllLanguageItemsError()
#
Handle language items failing to be loaded.
TODO: This error function should probably not be empty.
Handle language items failing to be loaded.
onAllLanguageItemsSuccess(response) → {Array}
#
Handle language items being loaded.
setup(fragment, config) → {jQuery.Promise}
#
Set up the page.
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fragment |
ve.dm.SurfaceFragment | Surface fragment |
|||||||||||||||
config |
Object |
Properties:
|
Returns:
- Type
- jQuery.Promise
- Inherited from:
- Source:
Set up the page.
setupOutlineItem()
#
teardown([data])
#
Tear down the page, applying or discarding changes per the action that closed the dialog.
Parameters:
| Name | Type | Attributes | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object |
optional |
Dialog tear down data Properties:
|
- Inherited from:
- Source:
Tear down the page, applying or discarding changes per the action that closed the dialog.