Expand all

ve.ui.MWTransclusionOutlineToggleUnusedWidget

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.

Source:

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.

onToggle(visible)private #

Handles toggling the visibility of the button.

Parameters:

Name Type Description
visible boolean
Source:

Fires:

Handles toggling the visibility of the button.

toggleUnusedParameters(showUnused, [fromClick]) #

Parameters:

Name Type Attributes Description
showUnused boolean
fromClick boolean optional
Source:

Fires:

updateState(showUnused) → {boolean}private #

Parameters:

Name Type Description
showUnused boolean
Source:

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.

Source: