1.0.3 • Published 5 years ago

vbs-ng-datepicker v1.0.3

Weekly downloads
37
License
-
Repository
-
Last release
5 years ago

How to use:

Install by npm:

npm install vbs-ng-datepicker

Import in your module:

import { VbsNgDatepickerModule } from 'vbs-ng-datepicker';

...

imports: [

... VbsNgDatepickerModule,

],

Use in your component.html (sample):

<vbs-ng-datepicker

daysOfTheWeek="{'1': 'Dom', '2': 'Seg', '3': 'Ter', '4': 'Qua', '5': 'Qui', '6': 'Sex', '7': 'Sab'}"

min="2019-08-17"

max="someDateObj"

(ngModel)="value"

displayFormat="yyyy/mm/dd"

valueFormat="yyyy-mm-dd">

\

Where:

  • min/max can be a string formatted as "yyyy-mm-dd" or a Date object;
  • displayFormat and valueFormat should use yyyy for year, mm for month and dd for day, separated by "/" or "-".
  • displayFormat is about how data is displayed in the input.
  • valueFormat is about control value format;
  • all parameters are optional.
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago