bootstrap\Dropdown init()

init() public method Initializes the widget. If you override this method, make sure you call the parent implementation first. public void init ( )

bootstrap\Dropdown $submenuOptions

$submenuOptions public property (available since version 2.0.5) The HTML attributes for sub-menu container tags. If not set - $options value will be used for it. public array|null $submenuOptions = null

bootstrap\Dropdown $items

$items public property List of menu items in the dropdown. Each array element can be either an HTML string, or an array representing a single menu with the following structure: label: string, required, the label of the item link. encode: boolean, optional, whether to HTML-ecnode item label. url: string|array, optional, the url of the item link. This will be processed by \yii\bootstrap\Url::to(). If not set, the item will be treated as a menu header when the item has no sub-menu. visible: bo

bootstrap\Dropdown $encodeLabels

$encodeLabels public property Whether the labels for header items should be HTML-encoded. public boolean $encodeLabels = true

bootstrap\Collapse run()

run() public method Renders the widget. public void run ( )

bootstrap\Collapse renderItems()

renderItems() public method Renders collapsible items as specified on $items. public string renderItems ( )return string The rendering result throws yii\base\InvalidConfigException if label isn't specified

bootstrap\Collapse renderItem()

renderItem() public method Renders a single collapsible item group public string renderItem ( $header, $item, $index )$header string A label of the item group $items $item array A single item from $items $index integer The item index as each item group content must have an id return string The rendering result throws yii\base\InvalidConfigException

bootstrap\Collapse init()

init() public method Initializes the widget. public void init ( )

bootstrap\Collapse $items

$items public property List of groups in the collapse widget. Each array element represents a single group with the following structure: label: string, required, the group header label. encode: boolean, optional, whether this label should be HTML-encoded. This param will override global $this->encodeLabels param. content: array|string|object, required, the content (HTML) of the group options: array, optional, the HTML attributes of the group contentOptions: optional, the HTML attributes

bootstrap\Collapse $encodeLabels

$encodeLabels public property Whether the labels for header items should be HTML-encoded. public boolean $encodeLabels = true