Expand all

mw.echo.ui.BadgeLinkWidget

Extends

Constructor

new mw.echo.ui.BadgeLinkWidget([config]) #

Notification badge button widget for echo popup.

Parameters:

Name Type Attributes Description
config Object optional

Configuration object

Source:
Notification badge button widget for echo popup.

Methods

onClick() #

Overrides ButtonElement.prototype.onClick so that it doesn't call ev.stopPropagation. This ensures the dialog dismisses other open overlays e.g. ULS (See T295796 for more information).

Source:
Overrides ButtonElement.prototype.onClick so that it doesn't call ev.stopPropagation.

setCount(numItems, [convertedNumber]) #

Set the count labels for this button.

Parameters:

Name Type Attributes Description
numItems number

Number of items

convertedNumber string optional

Label of the button. Defaults to the default message showing the item number.

Source:
Set the count labels for this button.