new TemplateList(configopt)
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Configuration options. Properties
|
Extends
- OO.ui.TabPanelLayout
Methods
addRowToList(fave)
Add a template to the list of favorites.
Parameters:
| Name | Type | Description |
|---|---|---|
fave |
Object |
onFavoriteAdded(pageId) → {void}
When a favorite is added, update the list.
Parameters:
| Name | Type | Description |
|---|---|---|
pageId |
number |
Returns:
- Type
- void
onFavoriteRemoved(pageId)
When a favorite is removed, update the list.
Parameters:
| Name | Type | Description |
|---|---|---|
pageId |
number |
updateFavoritesCount()
Update the favorites count display.