1.0.5 • Published 5 years ago

ionic-native-datepicker v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Ionic Native Date Picker (Date Picker Plugin Wrapper)

This is an ionic 4 plugin to take date using native date-picker functionality. This plugin is based on ionic native date picker.

Example

Disclaimer

This project was tested in ionic 4.0.0 for my personal purposes. Due to this plugin is for my personal usage, it currently only support YYYY-MM-DD value as the output

How to use

  1. Install the plugin
npm install ionic-native-datepicker
  1. Import and add in app.module.ts
....
import { IonicnativedatepickerwrapperModule,IonicnativedatepickerProvider } from 'ionic-native-datepicker';
....
  1. In app.module.ts, add the module and provider to imports and providers sections
imports {
....
IonicnativedatepickerwrapperModule,
....
}

providers [
....
IonicnativedatepickerProvider,
....
]
  1. In component.module.ts, import and export the component
...
import { IonicnativedatepickerwrapperModule, IonicnativedatepickerComponent } from 'ionic-native-datepicker';
...
imports:[
IonicnativedatepickerwrapperModule
]
...
exports: [
...
IonicnativedatepickerComponent,
...
]
  1. Use it in respective html like this:
<ion-native-datepicker [(ngModel)]="time"></ion-native-datepicker>

// MM/DD/YYYY of the pictureData
<p>{{time}}</p>
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago