new FavoriteButton(config)
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | Configuration options. Properties
|
Extends
- OO.ui.ButtonInputWidget
Methods
setFavoriteState(isFavorite)
Update the visible state of the button (icon, label, and title).
Parameters:
| Name | Type | Description |
|---|---|---|
isFavorite |
boolean | The new state to set to. |