- Source:
handle accordion use
The avAccordion
https://jsfiddle.net/aestheticartist/h72fuxvw/
Methods
(private, inner) addButton(element, scope)
- Source:
Add expand and collapse button to array section
Parameters:
Name | Type | Description |
---|---|---|
element |
Object | element to add to |
scope |
Object | Angular scope |
(private, inner) addIcon(element, scope, open)
- Source:
Add expand and collapse icon to accordion section
Parameters:
Name | Type | Description |
---|---|---|
element |
Object | element to add to |
scope |
Object | Angular scope |
open |
Boolean | true if the expand icon is show, false if collapse icon is shown |
(inner) avAccordion($compile, $timeout, events, constants) → {Object}
- Source:
avAccordion
directive body.
Parameters:
Name | Type | Description |
---|---|---|
$compile |
Object | Angular object |
$timeout |
Object | Angular object |
events |
Object | Angular object |
constants |
Object | the modules whho contains all the constants |
Returns:
directive body
- Type
- Object
(private, inner) setAccordion(scope, element, delay)
- Source:
Set accordion on form if needed
Parameters:
Name | Type | Description |
---|---|---|
scope |
Object | Angular scope |
element |
Object | element to add to |
delay |
Interger | timeout to apply |