Angular Directive date picker
This Project is Fork From ngx-mydatepicker Custom For Support Thai Year.
Thx. @kekeh for great component.
To install this component to an external project, follow the procedure:
-
npm install ngx-mydatepicker-th --save
-
Add NgxMyDPTHModule import to your @NgModule like example below
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { MyTestApp } from './my-test-app'; import { NgxMyDPTHModule } from 'ngx-mydatepicker-th'; @NgModule({ imports: [ BrowserModule, NgxMyDPTHModule ], declarations: [ MyTestApp ], bootstrap: [ MyTestApp ] }) export class MyTestAppModule {}
-
If you are using systemjs package loader add the following ngx-mydatepicker-th properties to the System.config:
(function (global) { System.config({ paths: { 'npm:': 'node_modules/' }, map: { // Other components are here... 'ngx-mydatepicker-th': 'npm:ngx-mydatepicker-th/bundles/ngx-mydatepicker-th.umd.min.js' }, packages: { } }); })(this);
See from Original Repo Click
See from Original Repo Click
Option | Default | Type | Description |
---|---|---|---|
yearOffset | 543 | number | For Display Year with by plus offset value Ex. A.D. Year 2017 Will Display is 2560 (2017 + 543). |
- Example of the options data (not all properties listed):
myOptions: INgxMyDpOptions = {
yearOffset: 543
};
See from Original Repo Link
See from Original Repo Link
-
At first fork and clone this repo.
-
Install all dependencies:
- npm install
- npm install --global gulp-cli
-
Build the npmdist folder and execute tslint:
- gulp all
-
Execute unit tests and coverage (output is generated to the test-output folder):
- npm test
-
Run sample application:
- npm start
- Open http://localhost:5000 to browser
-
Build a local npm installation package:
- gulp all
- cd npmdist
- npm pack
- local installation package is created to the npmdist folder. For example: ngx-mydatepicker-0.0.1.tgz
-
Install local npm package to your project:
- npm install path_to_npmdist/ngx-mydatepicker-0.0.1.tgz
- Firefox (latest)
- Chrome (latest)
- Chromium (latest)
- Edge
- IE11
- Safari
- License: MIT
- Author: kekeh (Original)
- Author: ronsc (Fork)
- Date picker
- Angular2
- Angular4
- date picker thai