exc-controls
v1.0.29
Published
The Exc-Controls module provides some custom controls, interfaces and services, validators and classes for creating an web application in our default behavior.
Downloads
25
Readme
Documentation
Module Exc-Controls
The Exc-Controls module provides some custom controls, interfaces and services, validators and classes for creating an web application in our default behavior.
Controls
lib-exc-accordion
Example
<lib-exc-accordion #acc1 [singleMode]="true">
<lib-exc-accordion-panel label="panel1" [checked]="true"></lib-exc-accordion-panel>
<lib-exc-accordion-panel label="panel2"></lib-exc-accordion-panel>
<lib-exc-accordion-panel label="panel3"></lib-exc-accordion-panel>
</lib-exc-accordion>
import {ViewChild} from '@angular/core';
import {ExcAccordionComponent} from 'exc-controls';
//...
export class CustomComponent{
@ViewChild('acc1',{read:ExcAccordionComponent}) acc1:ExcAccordionComponent;
close(){
this.acc1.closeAll();
}
}
Input
|Name|Type|Description| | --- | --- | --- | | singleMode|Boolean|Property to only allow one open accordion panel simultaneously (default:true)|
Output
@Viewchild-Instance
|Name|Type / Return Type|Description| | --- | --- | --- | | closeAll()|method / void|Close all open accordion panels| | open(targetIndex:number,open:bool)|method / void|Opens the accordion panel with the given index|
lib-exc-accordion-panel
Example
See example of lib-exc-accordion
Input
|Name|Type|Description| | --- | --- | --- | | label|String|The label of the panel| | checked|Boolean|Determines if this panel should be open|