Expand all

ve.ui.MWTransclusionOutlineControlsWidget

Extends

Constructor

new ve.ui.MWTransclusionOutlineControlsWidget() #

Toolbar at the bottom of the template dialog sidebar. Provides buttons to reorder and delete top-level parts, and buttons to add templates or raw wikitext.

When there is only one template in the transclusion, the sidebar may be hidden.

Mixes in:
Source:
Toolbar at the bottom of the template dialog sidebar.

Methods

setButtonsEnabled(states) #

Change buttons

Parameters:

Name Type Description
states Object

List of abilities with canMoveUp, canMoveDown and canBeDeleted

Properties:
Name Type Description
canMoveUp boolean

Allow moving item up

canMoveDown boolean

Allow moving item down

canBeDeleted boolean

Allow removing removable item

Source:
Change buttons

Events

addTemplate() #

Emitted when the "Add template" button in the toolbar is clicked

Source:
Emitted when the "Add template" button in the toolbar is clicked

addWikitext() #

Emitted when the "Add wikitext" button in the toolbar is clicked

Source:
Emitted when the "Add wikitext" button in the toolbar is clicked

move(places) #

Emitted when one of the two "Move item up/down" buttons in the toolbar is clicked

Parameters:

Name Type Description
places number

Number of places to move, typically -1 or 1

Source:
Emitted when one of the two "Move item up/down" buttons in the toolbar is clicked

remove() #

Emitted when the "Remove item" button in the toolbar is clicked

Source:
Emitted when the "Remove item" button in the toolbar is clicked