\TbCollapse

## Bootstrap collapse widget.

Summary

Methods
Properties
Constants
init()
run()
getNextContainerId()
$tagName
$parent
$toggle
$options
$events
$htmlOptions
CONTAINER_PREFIX
No protected methods found
No protected properties found
N/A
No private methods found
$_containerId
N/A

Constants

CONTAINER_PREFIX

CONTAINER_PREFIX

Properties

$tagName

$tagName : string

Type

string — the name of the collapse element. Defaults to 'div'.

$parent

$parent : boolean

Type

boolean — the CSS selector for element to collapse. Defaults to 'false'.

$toggle

$toggle : boolean

Type

boolean — indicates whether to toggle the collapsible element on invocation.

$options

$options : array

Type

array — the options for the Bootstrap Javascript plugin.

$events

$events : string[]

Type

string[] — the Javascript event handlers.

$htmlOptions

$htmlOptions : array

Type

array — the HTML attributes for the widget container.

$_containerId

$_containerId

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Runs the widget.

getNextContainerId()

getNextContainerId() : string

### .getNextContainerId()

Returns the next collapse container ID.

Returns

string —

the id