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.
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:
|
Change buttons
Events
addTemplate()
#
Emitted when the "Add template" button in the toolbar is clicked
Emitted when the "Add template" button in the toolbar is clicked
addWikitext()
#
Emitted when the "Add wikitext" button in the toolbar is clicked
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 |
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
Emitted when the "Remove item" button in the toolbar is clicked