seimin 55b3368751 项目初始化 3 年之前
..
demo.html 55b3368751 项目初始化 3 年之前
demo.js 55b3368751 项目初始化 3 年之前
readme.md 55b3368751 项目初始化 3 年之前

readme.md

The accordion directive builds on top of the collapse directive to provide a list of items, with collapsible bodies that are collapsed or expanded by clicking on the item's header.

The body of each accordion group is transcluded into the body of the collapsible element.

uib-accordion settings

  • close-others (Default: true) - Control whether expanding an item will cause the other items to close.

  • template-url (Default: template/accordion/accordion.html) - Add the ability to override the template used on the component.

uib-accordion-group settings

  • is-disabled (Default: false) - Whether the accordion group is disabled or not.

  • is-open (Default: false) - Whether accordion group is open or closed.

  • heading (Default: none) - The clickable text on the group's header. You need one to be able to click on the header for toggling.

  • panel-class (Default: panel-default) - Add ability to use Bootstrap's contextual panel classes (panel-primary, panel-success, panel-info, etc...) or your own. This must be a string.

  • template-url (Default: template/accordion/accordion-group.html) - Add the ability to override the template used on the component.

Default settings uibAccordionConfig

  • closeOthers (Default: true) - Control whether expanding an item will cause the other items to close.

Accordion heading

Instead of the heading attribute on the uib-accordion-group, you can use an uib-accordion-heading element inside a group that will be used as the group's header.