Expand all

ve.ui.MWTransclusionOutlinePlaceholderWidget

Extends

Constructor

new ve.ui.MWTransclusionOutlinePlaceholderWidget(placeholder) #

Sidebar item for a template which has yet to be added, its name is not yet given.

Parameters:

Name Type Description
placeholder ve.dm.MWTemplatePlaceholderModel
Source:

Sidebar item for a template which has yet to be added, its name is not yet given.

Methods

isSelected() → {boolean} #

Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.

Inherited from:
Source:

Returns:

Type
boolean
Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.

setSelected(state) #

Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.

Parameters:

Name Type Description
state boolean
Inherited from:
Source:
Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.

updateButtonAriaDescription(state)private #

Events

transclusionOutlineItemSelected(pageName, [soft]) #

Triggered when the user interacts with any sidebar element in a meaningful way, and that should be reflected in the content pane of the dialog. This includes e.g. selecting something that was already selected.

Parameters:

Name Type Attributes Description
pageName string

Unique id of the {@see OO.ui.BookletLayout} page, e.g. something like "part_1" or "part_1/param1".

soft boolean optional

If true, focus should stay in the sidebar. Defaults to false.

Inherited from:
Source:

Triggered when the user interacts with any sidebar element in a meaningful way, and that should be reflected in the content pane of the dialog.

transclusionPartSoftSelected(partId) #

"Soft" selection with space.

Parameters:

Name Type Description
partId string

Unique id of the {@see ve.dm.MWTransclusionPartModel}, e.g. something like "part_1".

Inherited from:
Source:
"Soft" selection with space.