ng2-datepicker
ng2-datepicker copied to clipboard
Feature request: input css class
Can it be an input option to replace the css class of the input control that this generates (i.e. so I can set it to bootstraps 'form-control' and overrul the 'ngx-datepicker-input' class.
Or better yet, have this as a directive rather a component.
hi. you can always override classes you need in your custom css.
@coffeymatt, you can use headless
property to disable internal input and use your external <input>
:
<input type="text" name="date" [(ngModel)]="date" />
<ng2-datepicker [headless]="true" [(ngModel)]="date"></ng2-datepicker>
How can this be used for ng-datepicker? <input type="text" name="date" [(ngModel)]="date" (click)="picker1.toggle()"/> <ng-datepicker [headless]="true" #picker1 [(ngModel)]="date">
@irynaslisava, yes