Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

AngularJS version of the tabs directive.

uib-tabset settings

  • justified $ (Default: false) - Whether tabs fill the container and have a consistent width.

  • type (Defaults: tabs) - Navigation type. Possible values are 'tabs' and 'pills'.

  • vertical $ (Default: false) - Whether tabs appear vertically stacked.

uib-tab settings

  • active $ (Default: false) - Whether tab is currently selected.

  • deselect() $ - An optional expression called when tab is deactivated.

  • disable $ (Default: false) - Whether tab is clickable and can be activated.

  • heading - Heading text.

  • select() $ - An optional expression called when tab is activated.

Tabset heading

Instead of the heading attribute on the uib-tabset, you can use an uib-tab-heading element inside a tabset that will be used as the tabset's header. There you can use HTML as well.

Known issues

To use clickable elements within the tab, you have override the tab template to use div elements instead of anchor elements, and replicate the desired styles from Bootstrap's CSS. This is due to browsers interpreting anchor elements as the target of any click event, which triggers routing when certain elements such as buttons are nested inside the anchor element.