Extends
Constructor
new ve.ui.MWTransclusionOutlineToggleUnusedWidget()
#
Button widget to toggle unused fields in the template dialog sidebar, appears at the top of any template with more than the threshold number of parameters.
Button widget to toggle unused fields in the template dialog sidebar, appears at the top of any template with more than the threshold number of parameters.
Methods
onClick()private
#
Handles clicks on the button by mouse or keyboard interaction.
Fires:
Handles clicks on the button by mouse or keyboard interaction.
onToggle(visible)private
#
Handles toggling the visibility of the button.
Parameters:
Name | Type | Description |
---|---|---|
visible |
boolean |
Fires:
Handles toggling the visibility of the button.
setDisabled()
#
toggleUnusedParameters(showUnused, [fromClick])
#
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
showUnused |
boolean | ||
fromClick |
boolean |
optional |
Fires:
updateState(showUnused) → {boolean}private
#
Parameters:
Name | Type | Description |
---|---|---|
showUnused |
boolean |
Returns:
Returns true when state changed.
- Type
- boolean
Events
toggleUnusedFields(visibility, [fromClick])
#
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
visibility |
boolean | If unused fields should be shown or not. |
|
fromClick |
boolean |
optional |
Emitted when the visibility for unused fields should be (re)applied. |