Class: AccordionItemView

AccordionItemView()

A view representing an accordion item with a title and content

Screenshot

Constructor

new AccordionItemView()

Since:
  • 2.31.0
Source:

Extends

  • Backbone.View

Members

className

Source:
An HTML string to use for an icon indicating that the accordion item is collapsible.
Type:
  • string
Source:

tagName

Source:

tooltipSettings :object|boolean

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:
  • object | boolean
Since:
  • 2.34.0
Source:
See:

type

Source:

Methods

initialize()

Source:

listenToModel()

Listen to changes on the model and update the view accordingly. Called during render.
Since:
  • 2.34.0
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:
  • 2.34.0
Source:

updateTooltip()

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:
  • 2.34.0
Source: