Extends
Constructor
new ve.ui.MWTransclusionOutlineWikitextWidget(content)
#
Hierarchy
Top-level part in the template dialog sidebar, representing a raw wikitext snippet.
Parameters:
Name | Type | Description |
---|---|---|
content |
ve.dm.MWTransclusionContentModel |
Top-level part in the template dialog sidebar, representing a raw wikitext snippet.
Methods
isSelected() → {boolean}
#
Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.
- Inherited from:
- Source:
Returns:
- Type
- boolean
onHeaderKeyPressed(key)private
#
Parameters:
Name | Type | Description |
---|---|---|
key |
number |
- Inherited from:
- Source:
Fires:
setSelected(state)
#
Convenience method, modelled after {@see OO.ui.OptionWidget}, but this isn't one.
Parameters:
Name | Type | Description |
---|---|---|
state |
boolean |
updateButtonAriaDescription(state)private
#
Parameters:
Name | Type | Description |
---|---|---|
state |
boolean |
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. |
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.