0.0.1 • Published 1 year ago

kapela-buttongroup v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

NomTypedefaultComments
namestringk-buttongroup-name-{sequence}name of a hidden input containing the selected value
labelsstring[]['label1', 'label2', 'label3']type of the button, other available : menu, reset, submit
valuestringvalue of the selected value, it contains the label of selected button
disabledbooleanfalsedisable or not the buttongroup

Events

NameTypeComments
selectedValueEventEmitter<string>use to handle click event , send the value as data
0.0.1

1 year ago