Vue2-datepicker: Could you please add an option to alter the background color for the calender icon like this.

Created on 13 Feb 2019  路  5Comments  路  Source: mengxiong10/vue2-datepicker

Could you please add an option to alter the background color for the calender icon like this, now there is white color as bg.

image

now i have altered your css with my own like this.

image

I dont know if there already a possible way to do it. If there please help me ...

Most helpful comment

Change css just like you do now.
Or you can use your own icon by slot calendar-icon

<datepicker>
   <template slot="calendar-icon" >
      <i></i>
  </template>
</datepicker>

All 5 comments

Change css just like you do now.
Or you can use your own icon by slot calendar-icon

<datepicker>
   <template slot="calendar-icon" >
      <i></i>
  </template>
</datepicker>

I have already passed a font awesome icon through the calendar-icon slot, but there is still white bg along with that input box. My input box is grey.

I'll remove the icon background-color

or else you can make an element to alter the background color for the users it may be perfect, like theinput-class bg color..

The background-color is redundant.

Was this page helpful?
0 / 5 - 0 ratings