Expand all

ve.ui.MWTransclusionOutlineParameterWidget

Extends

Constructor

new ve.ui.MWTransclusionOutlineParameterWidget(config) #

A widget that represents a template parameter, with a checkbox to add/remove the parameter. Modelled after {@see OO.ui.OutlineOptionWidget}. Also see {@see OO.ui.CheckboxMultioptionWidget} for inspiration.

Parameters:

Name Type Description
config Object
Properties:
Name Type Attributes Default Description
data string

Parameter name

label string
required boolean optional
false

Required parameters can't be unchecked

selected boolean optional
false

If the parameter is currently used (checked)

hasValue boolean optional
false

If the parameter has a value that's not empty

Source:
A widget that represents a template parameter, with a checkbox to add/remove the parameter.

Methods

ensureVisibility(paddingTop) #

Custom method to scroll parameter into view respecting the sticky part that sits above

Parameters:

Name Type Description
paddingTop number
Source:
Custom method to scroll parameter into view respecting the sticky part that sits above

onMouseDown(e)private #

toggleActivePageIndicator(state) #

Parameters:

Name Type Description
state boolean
Source:

toggleHasValue(hasValue) #

Parameters:

Name Type Description
hasValue boolean
Source: