ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

Change width of input #183

Closed cgebe closed 7 years ago

cgebe commented 7 years ago

Steps to reproduce and a minimal demo

Using the following datetime:

<datetime [(ngModel)]="fromDate" name="fromDate" id="fromDate" [datepicker]="datepickerConfig" [timepicker]="false"></datetime>

Config:

this.datepickerConfig = {
     placeholder: 'From Date',
     autoclose: true,
     todayHighlight: true,
     assumeNearbyYear: true,
     format: 'dd.mm.yyyy',
     icon: "fa fa-calendar"
}

Current behavior Setting the width of the input via .input-group class does not work.

.input-group {
    width: 100% !important;
}

Expected/desired behavior One should be able to set the input width.