Expand all

ve.ui.MWAddParameterPage

Extends

Constructor

new ve.ui.MWAddParameterPage(parameter, name, [config]) #

Placeholder page for a currently unnamed parameter. Represented as an unnamed {@see ve.dm.MWParameterModel} in the corresponding {@see ve.dm.MWTemplateModel}.

Parameters:

Name Type Attributes Description
parameter ve.dm.MWParameterModel

Reference to a placeholder parameter with an empty name, as well as to the template the parameter belongs to

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:
Placeholder page for a currently unnamed parameter.

Methods

getValidationErrors(name) → {Array.<jQuery>}private #

Parameters:

Name Type Description
name string

Parameter name or alias

Source:

Returns:

An array as accepted by {@see OO.ui.FieldLayout.setErrors}

Type
Array.<jQuery>

onTemplateParametersChanged()private #

togglePlaceholder([expand])private #

Parameters:

Name Type Attributes Description
expand boolean optional
Source:

updateParameterNameValidation(value)private #

Parameters:

Name Type Description
value string
Source:

Events

templateParameterAdded(id) #

Parameters:

Name Type Description
id string

Page ID

Source: