0.0.4 • Published 1 year ago

kapela-select v0.0.4

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

About

This library contains component for select

Install

$npm install kapela-select

Usage

import

import { KapelaSelectComponent } from 'kapela-select';

@Component({
  ...
  imports: [KapelaSelectComponent],
  ...
})

dom

<kapela-select></kapela-select>

Model

export class KOptionModel {
  value!: string;
  label!: string;
  selected?: boolean;
}

Attributes

NomTypedefaultComments
idstringk-select-{sequence}id of the select
namestringk-select-name-{sequence}name of the select
disabledbooleanfalseset disabled or not the select
requiredbooleanfalseset required or not the select
valueanyvalue of the select
labelstringDefault Labellabel of the select
optionsKOptionModel[][]options collection
multiplebooleanfalseplacehomder of the select multiple or not

Events

NameTypeComments
valueChangedEventEmitter<any>use to handle value change event , send the value as data

Directives

import

import { KapelaSelectNormalDirective } from 'kapela-select';

@Component({
  ...
  imports: [ KapelaSelectNormalDirective ],
  ...
})

dom

selectorusageComments
kapela-select-normal<kapela-select kapela-select-normal></kapela-select>make to native select
0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago