Extends
Constructor
new ve.ui.MWParameterPage(parameter, [config])
#
Hierarchy
Container for editing the value of a parameter in the template dialog content pane. Includes a dynamic value input depending on the parameter's type documented in TemplateData.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
parameter |
ve.dm.MWParameterModel | Template parameter |
|||||||||||||
config |
Object |
optional |
Configuration options Properties:
|
Container for editing the value of a parameter in the template dialog content pane.
Methods
containsSomeValue() → {boolean}private
#
Returns:
True if there is either user-provided input or a default value
- Type
- boolean
createValueInput() → {OO.ui.InputWidget}private
#
Create a value input widget based on the parameter type and whether it is required or not.
Returns:
- Type
- OO.ui.InputWidget
Create a value input widget based on the parameter type and whether it is required or not.
focus()
#
getDefaultInputConfig() → {Object}private
#
isSuggestedValueType(type) → {boolean}private
#
Whether or not to show suggested values for a given parameter type
Parameters:
Name | Type | Description |
---|---|---|
type |
string | Parameter type |
Returns:
True if suggested values should be shown
- Type
- boolean
onValueInputChange(value)private
#
Handle change events from the value input
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
updateSize()
#
Refresh collapsible children.
Events
hasValueChange(string, boolean)
#
Triggered when the parameter value changes between empty and not empty.
Parameters:
Name | Type | Description |
---|---|---|
string |
parameterId Keyed by unique id of the parameter, e.g. something like "part_1/param1". |
|
boolean |
hasValue |