Extends
Constructor
new ve.ui.MWMetaPage(name, [config])abstract
#
Hierarchy
Children
Abstract base class for the pages of ve.ui.MWMetaDialog.
Subclasses are registered with the ve.ui.MWMetaDialogPageFactory
ve.ui.mwMetaDialogPageFactory. Pages appear in the dialog in registration order.
Parameters:
Abstract base class for the pages of
ve.ui.MWMetaDialog.
Properties
modesstatic
#
Surface modes the page applies to, e.g. [ 'visual', 'source' ]. null means all modes.
Properties:
| Type | Description |
|---|---|
Array.<string>
|
null
|
Surface modes the page applies to, e.g.
Methods
getFieldsets() → {Array.<OO.ui.FieldsetLayout>}
#
Get the fieldsets whose widgets the dialog watches for changes.
Returns:
Fieldsets
- Type
- Array.<OO.ui.FieldsetLayout>
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
Check whether the page's settings are valid.
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
Set up the page.
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:
|
Tear down the page, applying or discarding changes per the action that closed the dialog.