Class: ExpansionPanelView

ExpansionPanelView()

Allow expand and collapse content in a panel.

Screenshot

Constructor

new ExpansionPanelView()

Since:
  • 2.29.0
Source:

Extends

  • Backbone.View

Members

className

Source:

templateVars

Values meant to be used by the rendered HTML template.
Source:

type :string

The type of View this is
Type:
  • string
Source:

Methods

collapse()

Force the panel's content to be hidden.
Source:

events()

The events this view will listen to and the associated function to call.
Source:

getContent() → {HTMLDivElement}

Getter function for the content div.
Source:
Returns:
Returns the content element.
Type
HTMLDivElement

open()

Force the panel's content to be shown.
Source:

render()

Render the view by updating the HTML of the element. The new HTML is computed from an HTML template that is passed an object with relevant view state.
Source:

toggle()

Toggle the visibility of the panel's content.
Source: