Extends
Constructor
new mw.echo.ui.ToggleReadCircleButtonWidget([config])
#
A button showing a circle that represents either 'mark as read' or 'mark as unread' states.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
optional |
Configuration options |
A button showing a circle that represents either 'mark as read' or 'mark as unread' states.
Methods
toggleState([isMarkAsRead])
#
Toggle the state of the button from 'mark as read' to 'mark as unread' and vice versa.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
isMarkAsRead |
boolean |
optional |
The state is mark as read |
Toggle the state of the button from 'mark as read' to 'mark as unread' and vice versa.