Expand all

abstract ve.ui.MWMetaPage

Extends

Constructor

new ve.ui.MWMetaPage(name, [config])abstract #

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:

Name Type Attributes Description
name string

Unique symbolic name of page

config Object optional

Configuration options

Properties:
Name Type Attributes Description
$overlay jQuery optional

Overlay to render dropdowns in

Source:
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
Source:
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>
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
Source:
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:
Name Type Attributes Default Description
data Object optional

Dialog setup data

isReadOnly boolean optional
false

Dialog is in read-only mode

Returns:

Type
jQuery.Promise
Source:
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:
Name Type Attributes Description
action string optional

Action that closed the dialog

Source:
Tear down the page, applying or discarding changes per the action that closed the dialog.