0.0.9 • Published 3 years ago

ion-time-picker v0.0.9

Weekly downloads
76
License
MIT
Repository
github
Last release
3 years ago

Ion Time Picker

Here is how it looks

ionic-timepicker Gif

Installation

npm i ion-time-picker@latest.

Quickstart

Import ion-time-picker in you module page.

// Import the module
import { IonTimePickerModule } from 'ion-time-picker';
...
@NgModule({
    (...)
    imports: [
        IonTimePickerModule
    ],
    exports: [
        IonTimePickerModule
    ],
    (...)
})
export class AppModule {}

Usage ion-time-picker As a Component

time = 'YOUR_TIME'; 
// (please assign time with proper format which is describe below)
timePickerObj = {
    inputTime: '11:01 PM', // for 12 hour time in timePicker
    timeFormat: '', // default 'hh:mm A'
    setLabel: 'Set', // default 'Set'
    closeLabel: 'Close', // default 'Close'
    titleLabel: 'Select a Time', // default 'Time'
    clearButton: false, // default true
    btnCloseSetInReverse: true, // default false
    momentLocale: 'pt-BR', //  default 'en-US'

    btnProperties: {
        expand: '', // "block" | "full" (deafault 'block')
        fill: '', // "clear" | "default" | "outline" | "solid" 
                 // (deafault 'solid')
        size: '', // "default" | "large" | "small" (deafault 'default')
        disabled: '', // boolean (default false)
        strong: '', // boolean (default false)
        color: ''
        // "primary", "secondary", "tertiary", "success", 
        // "warning", "danger", "light", "medium", "dark" , 
        // and give color in string (default 'primary')
      }
};
 <ion-time-picker 
    [inputTimeConfig]="timePickerObj" 
    [times]="time"
    [readOnly]="readOnly"
    (clickTime)="time = $event"
></ion-time-picker>

Credits to

ionic-timepicker Documentation this link

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago