0.0.1 • Published 2 years ago
kapela-text-field v0.0.1
About
This library contains component for text-field
Install
$npm install kapela-text-fieldUsage
import
import { KapelaTextFieldComponent } from 'kapela-text-field';
@Component({
...
imports: [KapelaTextFieldComponent],
...
})dom
<kapela-text-field></kapela-text-field>Attributes
| Nom | Type | default | Comments |
|---|---|---|---|
| id | string | k-input-{sequence} | id of the text-field |
| name | string | k-input--name-{sequence} | name of the text-field |
| disabled | boolean | false | set disabled or not the text-field |
| placeholder | string | placeholder of the text-field | |
| title | string | tooltip of the text-field | |
| label | string | label | label of the text-field |
| value | string | value of the text-field | |
| required | boolean | false | set required or not the text-field |
Events
| Name | Type | Comments |
|---|---|---|
| valueChanged | EventEmitter<string> | use to handle value change event , send the value as data |
Directives
import
import { KapelaSelectNormalDirective } from 'kapela-select';
@Component({
...
imports: [ KapelaSelectNormalDirective ],
...
})dom
| selector | usage | Comments |
|---|---|---|
| kapela-text-field-normal | <kapela-select kapela-text-field-normal></kapela-select> | make to an native text field |
0.0.1
2 years ago