@tuckito/time-picker-ng
v0.0.1-alpha.1
Published
Componenet for select time
Downloads
228
Maintainers
Readme
TimePickerNg
This library was generated with Angular CLI version 18.2.8.
Usage
1.Install component
npm i --save time-picker-ng
2. Import component
import {TimePickerNgComponent } from '@tuckito/time-picker-ng'
@Component({
imports:[TimePickerNgComponent]
})
export class AppComponent {
//Get time
getSelectedTime(time: string){
console.log(time);
}
}
<time-picker-ng
time="12"
(selectedTimeEvent)="getSelectedTime($event)"
></time-picker-ng>
Configure
| Name | Type | Description | | ------------------ | -------- |----------------------------------- | | time | string | Format time 12 or 24. default: 12 | | selectedTimeEvent | function | Return selectedTime to string |