@ngx-tiny/date-picker
v10.0.2
Published
   export class AppModule { }
Add the component to your view for basic
<div class="form-group"> <label>Single Date</label> <input class="form-control" placeholder="Select Date" [ngxDatePicker]="dateInstanceSingle" [value]="singleDate" (valueChange)="onChangeSingle($event)"> <ngx-date-picker #dateInstanceSingle [options]="singleDatePickerOptions"></ngx-date-picker> </div>
or for Angular forms
<form [formGroup]="myFormSingle" (ngSubmit)="onSubmitSingle()"> <div class="form-group"> <label>Single Date</label> <input class="form-control" placeholder="Select Date" formControlName="singleDate" [ngxDatePicker]="dateInstanceOne" > <ngx-date-picker #dateInstanceOne [options]="singleDatePickerOptions"></ngx-date-picker> <button class="btn" type="submit">Submit</button> </div> </form>
The examples above are quite basic. The picker has much more features and configurations.
Check Out Ngx-Tiny Other Projects
- @ngx-tiny/single-select
- @ngx-tiny/multi-select
- @ngx-tiny/quill-editor
- @ngx-tiny/switch-input
- @ngx-tiny/date-picker
- @ngx-tiny/ngx-time-picker
- @ngx-tiny/code-highlight
- @ngx-tiny/tabs
- @ngx-tiny/clipboard
Support
Support me by becoming a patron and buying me a beer :)
License
See the LICENSE file.