Expand all

ve.ui.MWExpandableErrorElement

Extends

Constructor

new ve.ui.MWExpandableErrorElement([config]) #

MediaWiki expandable error element.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Mixes in:
Source:
MediaWiki expandable error element.

Methods

clear() #

Hide and collapse the error element, remove the label, and set expandable to false.

Source:

Hide and collapse the error element, remove the label, and set expandable to false.

setExpandable([expandable]) #

Set the expandability of the error.

Parameters:

Name Type Attributes Description
expandable boolean optional

Value to set the expandability to, determine based on label size if omitted

Source:
Set the expandability of the error.

show([$element]) #

Show the error and set the label to contain the error text.

Parameters:

Name Type Attributes Description
$element jQuery optional

Element containing the error

Source:
Show the error and set the label to contain the error text.

toggleLabel([expand]) #

Toggles the label between collapsed and expanded.

Parameters:

Name Type Attributes Description
expand boolean optional

Expand if true, collapse if false, toggle if omitted

Source:
Toggles the label between collapsed and expanded.

Events