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:

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

initialize(options)

Initialize the view with the given options.
Parameters:
Name Type Description
options ExpansionPanelViewOptions The options for this view.
Source:

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: