Constructor
new AccordionItemView()
- Since:
- Source:
Extends
Members
className
- Source:
dropdownIconTemplate :string
An HTML string to use for an icon indicating that the accordion item is
collapsible.
Type:
- Source:
tagName
- Source:
Settings passed to the Formantic UI popup module to configure a tooltip
shown over the item title. The item must have a description set
in order for the tooltip to be shown.
Type:
- Since:
- Source:
- See:
-
type
- Source:
Methods
initialize()
- Source:
listenToModel()
Listen to changes on the model and update the view accordingly. Called
during render.
- Since:
- Source:
render()
- Source:
updateContent(content, clearopt)
Change the content of the accordion item.
Parameters:
Name |
Type |
Attributes |
Description |
content |
string
|
HTMLElement
|
Backbone.View
|
|
The content to
display. |
clear |
boolean
|
<optional>
|
Whether to clear the existing content. |
- Source:
updateTitle(titleopt)
Update the title of the accordion item.
Parameters:
Name |
Type |
Attributes |
Description |
title |
string
|
<optional>
|
The new title to set. If not provided, the
title will be taken from the model. |
- Since:
- Source:
Update the tooltip for the title of the accordion item.
If the model has a description set, it will be used as the tooltip
content. If not, the tooltip will be destroyed.
- Since:
- Source: