kapela-buttongroup
v0.0.1
Published
dynamic buttongroup component
Downloads
7
Readme
About
This library contains component for buttongroup
Install
$npm install kapela-buttongroup
Usage
import
import { KapelaButtongroupComponent } from 'kapela-buttongroup';
@Component({
...
imports: [KapelaButtongroupComponent],
...
})
dom
<kapela-buttongroup></kapela-buttongroup>
Attributes
| Nom | Type | default | Comments |
|----------|-------------|----------------------------------|-----------------------------------------------------------------------|
| name | string
| k-buttongroup-name-{sequence}
| name of a hidden input containing the selected value |
| labels | string[]
| ['label1', 'label2', 'label3']
| type of the button, other available : menu, reset, submit |
| value | string
| | value of the selected value, it contains the label of selected button |
| disabled | boolean
| false
| disable or not the buttongroup |
Events
| Name | Type | Comments |
|----------------|-------------------------|-------------------------------------------------------|
| selectedValue | EventEmitter<string>
| use to handle click event , send the value
as data |