API

Full API documentation.

Collapsible (Mixins)

Description

The Collapsible class gives to components the ability to shown or hidden its container.

Events

'beforehide'



    

Event emitted before the component is hidden.

// Subscribe to "beforehide" event.
collapsible.on('beforehide', function () {
    // Some code here!
});

'beforeshow'



    

Event emitted before the component is shown.

// Subscribe to "beforeshow" event.
collapsible.on('beforeshow', function () {
    // Some code here!
});

'hide'



    

Event emitted when the component is hidden.

// Subscribe to "hide" event.
collapsible.on('hide', function () {
    // Some code here!
});

'show'



    

Event emitted when the component is shown.

// Subscribe to "show" event.
collapsible.on('show', function () {
    // Some code here!
});