Expand all

ve.ui.MWTransclusionOutlineParameterSelectWidget

Extends

Constructor

new ve.ui.MWTransclusionOutlineParameterSelectWidget(config) #

List of template parameters, each of which can be added or removed using a checkbox.

This is modelled after {@see OO.ui.OutlineSelectWidget}. Currently we use the SelectWidget in multi-select mode, and selection maps to checked checkboxes.

Parameters:

Name Type Description
config Object
Properties:
Name Type Description
items Array.<ve.ui.MWTransclusionOutlineParameterWidget>

Properties:

Name Type Description
activeParameter string | null

Name of the currently selected parameter

stickyHeaderHeight number
Mixes in:
Source:

List of template parameters, each of which can be added or removed using a checkbox.

Methods

markParameterAsUnused(paramName) #

Parameters:

Name Type Description
paramName string
Source:

onCheckboxChange(item, value)private #

onMouseDown(e) #

setActiveParameter([paramName]) #

Parameters:

Name Type Attributes Description
paramName string | null optional

Parameter name to set, e.g. "param1". Omit to remove setting.

Source:

createItem(config) → {ve.ui.MWTransclusionOutlineParameterWidget}static #

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)

Source:

Returns:

Type
ve.ui.MWTransclusionOutlineParameterWidget

Events

templateParameterSpaceDown(item, selected) #

This is fired instead of the "choose" event from the {@see OO.ui.SelectWidget} base class when pressing space on a parameter to toggle it or scroll it into view, without losing the focus.

Parameters:

Name Type Description
item ve.ui.MWTransclusionOutlineParameterWidget
selected boolean
Source:

This is fired instead of the "choose" event from the {@see OO.ui.SelectWidget} base class when pressing space on a parameter to toggle it or scroll it into view, without losing the focus.