bootstrap\Tabs $items

$items public property

List of tabs in the tabs widget. Each array element represents a single tab with the following structure:

  • label: string, required, the tab header label.
  • encode: boolean, optional, whether this label should be HTML-encoded. This param will override global $this->encodeLabels param.
  • headerOptions: array, optional, the HTML attributes of the tab header.
  • linkOptions: array, optional, the HTML attributes of the tab header link tags.
  • content: string, optional, the content (HTML) of the tab pane.
  • url: string, optional, an external URL. When this is specified, clicking on this tab will bring the browser to this URL. This option is available since version 2.0.4.
  • options: array, optional, the HTML attributes of the tab pane container.
  • active: boolean, optional, whether this item tab header and pane should be active. If no item is marked as 'active' explicitly - the first one will be activated.
  • visible: boolean, optional, whether the item tab header and pane should be visible or not. Defaults to true.
  • items: array, optional, can be used instead of content to specify a dropdown items configuration array. Each item can hold three extra keys, besides the above ones:
    • active: boolean, optional, whether the item tab header and pane should be visible or not.
    • content: string, required if items is not set. The content (HTML) of the tab pane.
    • contentOptions: optional, array, the HTML attributes of the tab content container.
public array $items = []
doc_Yii
2016-10-30 16:53:39
Comments
Leave a Comment

Please login to continue.