Class: FavoriteButton

FavoriteButton(config)

new FavoriteButton(config)

Parameters:
Name Type Description
config Object

Configuration options.

Properties
Name Type Description
pageId string

The wiki page ID of the page to favorite/unfavorite. If "-1" then the button will be disabled.

favoritesStore FavoritesStore

The store to use.

Source:

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.

Source: