Handy material design timepicker for angular DECONied
npm install ngx-material-timepicker-decon


Handy multifunctional material design timepicker for Angular 6.0+
https://agranom.github.io/ngx-material-timepicker/
Timepicker uses lightweight Date library luxon,
so make sure you have installed it:
``angular2html`
npm install --save luxon
Install timepicker through npm:
`angular2html`
npm install --save ngx-material-timepicker-decon`
Next import the timepicker module into your app's module:typescript
import {NgModule} from '@angular/core';
import {NgxMaterialTimepickerModule} from 'ngx-material-timepicker';
@NgModule({
imports: [NgxMaterialTimepickerModule]
})
export class MyModule {}
``
Finally connect the timepicker to an input via a template property:angular2html`
The timepicker opens once you click on the input Documentation
#### API reference for Angular Material Timepicker
`typescript`
import {NgxMaterialTimepickerModule} from 'ngx-material-timepicker';
NgxTimepicker
Directive responsible for managing the timepicker popup and setting value to input
Selector: ngxTimepicker
Properties
| Name | Description |
|------|-------------|
| @Input()
ngxTimepicker: NgxMaterialTimepickerComponent | The timepicker that this input is associated with. |
| @Input()
disabled: boolean | Weather the timepicker popup should be disabled. |
| @Input()
value: string | Set a default value and time for a timepicker. The format of the time is in 12 hours notation 11:00 PM or in 24 hours notation 23:00. A Date string won't work. |12
| @Input()
format: number | or 24 . 12h/24h view for hour selection clock . 12 (AM/PM) format by default. |11:15 pm
| @Input()
min: string or DateTime | Set min time for timepicker ( ) |11:15 pm
| @Input()
max: string or DateTime | Set max time for timepicker ( ) |true
| @Input()
disableClick: boolean | Set to disable opening timepicker by clicking on the input |
NgxMaterialTimepickerComponent
Component responsible for visualisation the timepicker
Selector: ngx-material-timepicker
Properties
| Name | Description |
|------|-------------|
| @Input()
cancelBtnTmpl: TemplateRef
| @Input()
confirmBtnTmpl: TemplateRef
| @Input()
editableHintTmpl: TemplateRef |false
| @Input()
ESC: boolean | Disable or enable closing timepicker by ESC. |
| @Input()
enableKeyboardInput: boolean | To disable or enable changing time through a keyboard on the timepicker dial without interaction with a clock face. Set by default |1
| @Input()
minutesGap: number | To define a gap between minutes. Set by default |12:00 AM
| @Input()
defaultTime: string | Set default time for a timepicker. by default |true
| @Input()
preventOverlayClick: boolean | Set to prevent closing the timepicker by overlay click. Uses false by default |true
@Input()
disableAnimation: boolean | Set to prevent opening and closing timepicker animation. Uses false by default |
| @Output()
timeSet: EventEmitter\
| @Output()
opened: EventEmitter\
| @Output()
closed: EventEmitter\
| @Output()
hourSelected: EventEmitter\
NgxMaterialTimepickerToggleComponent
Component responsible for opening the timepicker.
Selector: ngx-material-timepicker-toggle
Properties
| Name | Description |
|------|-------------|
| @Input()
for: NgxMaterialTimepickerComponent | Timepicker instance that the button will toggle |
| @Input()
disabled: boolean | Whether the toggle button is disabled |
NgxMaterialTimepickerToggleIconDirective
Can be used to override the icon of a NgxMaterialTimepickerToggleComponent.
Selector: [ngxMaterialTimepickerToggleIcon]
NgxMaterialTimepickerThemeDirective
Can be used to override styles of a NgxMaterialTimepicker.
Selector: ngx-material-timepicker[ngxMaterialTimepickerTheme]
Properties
| Name | Description |
|------|-------------|
| @Input()
ngxMaterialTimepickerTheme: NgxMaterialTimepickerTheme | Custom properties which will override the defaults |
Install local dev dependencies: npm install while current directory is this repo.
$3
Run npm start to start a development server on a port 4200.
Open http//:localhost:4200 on your browser.
Run npm test to run tests once or npm run test:watch` to continually run tests.
MIT