Date, DateTime & Time Picker components that uses native HTML5 components on mobile
npm install ngx-datetime-picker- No jQuery or other external dependencies.
- 3 seperate components for Date Time, Date, and Time picker
- When being used on a mobile or touch devices it falls back to html5 inputs of date, datetime-local, and time


``typescript
import { DateTimePickerModule} from 'ngx-datetime-picker';
@NgModule({
imports: [
DateTimePickerModule
],
`
`html
>
Additional options for each picker: [disableButton]="false" (default)
[disableInput]="false" (default) [disablePicker]="false" (default)
[doNotCloseOnDateSet]="false" (default) Additional options for ngx-date-picker
and ngx-datetime-picker: [min]="null" (default) [max]="null" (default)
Additional options for ngx-time-picker and ngx-datetime-picker:
[use24HourClock]="false" (default)
`
Copy the ngx-datetime-picker css to your project.
_If_ you are using angular-cli the css can be added to your angular-cli.json
`typescript`
"styles": [
"../node_modules/ngx-datetime-picker/ngx-datetime-picker.css"
]
Sass files avaliable for quick customization. Override the defaults, compile, and include them in your project.
- Clone repository to your machine.
- Run npm run setup to prepare the projectnpm run serve
- Live edit mode with .npm run test
- Run tests with watcher with .npm run test.once
- Run tests without a watcher with .npm run dist
- Prepare for distrabution with (note you man need to also run tsc index.ts if you have updated the exported values.)npm run demo
- Test a demo project using the exported ngModule with date.component.scss
- Sass files are compiled locally using Koala.
- Set Koala to watch and compile it to ngx-datetimepicker > src > assets as ngx-datetime-picker.css.
- _Optionally_ you can use https://github.com/angular-buch/angular-cli-ghpages to publish the demo install to github pages. by first running npm run demo, then by going into your demo directory with cd demo and from there you can copy and past the two commands to publish to github pages.`
`
ng build --prod --aot --base-href "https://renovosolutions.github.io/ngx-datetimepicker/"
`
then
`
ngh --repo=https://github.com/renovosolutions/ngx-datetimepicker.git
gh-pages` branch and you wil need to authenicate again_
_note this will publish to the
- angular-cli 1.0.0-beta.28.3 or higher
- node 6.9.0 or higher
| |
|
|
|
|
|
|
|
| :-----------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------: |
| Josh Sommer | Brent Miller | Steven Farage | Marco Mantovani | Jojie Palahang | Sam Graber | Alejandro Cremades | Jeremy Quick |
| | | | | | | | Personal |