ng2-datepicker icon indicating copy to clipboard operation
ng2-datepicker copied to clipboard

Feature request: input css class

Open coffeymatt opened this issue 7 years ago • 4 comments

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.

coffeymatt avatar Oct 31 '17 12:10 coffeymatt

hi. you can always override classes you need in your custom css.

jkuri avatar Nov 02 '17 00:11 jkuri

@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>

x1unix avatar Nov 29 '17 22:11 x1unix

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 avatar Feb 06 '18 16:02 irynaslisava

@irynaslisava, yes

x1unix avatar Feb 10 '18 13:02 x1unix