Extends
Constructor
new ve.ui.MWAddParameterPage(parameter, name, [config])
#
Hierarchy
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:
|
Placeholder page for a currently unnamed parameter.
Methods
focus()
#
getValidationErrors(name) → {Array.<jQuery>}private
#
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Parameter name or alias |
Returns:
An array as accepted by {@see OO.ui.FieldLayout.setErrors}
initialize()private
#
onParameterNameSubmitted()private
#
onTemplateParametersChanged()private
#
togglePlaceholder([expand])private
#
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
expand |
boolean |
optional |
updateParameterNameValidation(value)private
#
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Events
templateParameterAdded(id)
#
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Page ID |