charliekassel / vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
MIT License
2.61k stars 732 forks source link

beforeDateInput Slot #662

Open westonwatson opened 5 years ago

westonwatson commented 5 years ago

I'd like to input a Slot for "beforeDateInput". Similar to afterDateInput; essentially I need to implement the datepicker in a bootstrap input-group. and the only way I've been able to achieve this is by:

<vuejs-datepicker v-model="start_date" format="MM-dd-yyyy" :bootstrap-styling="true">
  <div slot="afterDateInput" class="input-group-append">
    <span class="input-group-text">Start Date</span>
  </div>
</vuejs-datepicker>

Is there a better way to implement input-group-prepend(s) (Bootstrap 4.x)? If not, would you mind if I proposed (in a PR) an additional Slot: beforeDateInput ?

blackinitial commented 5 years ago

yeah, i need it to custom input group (input icons)

void-type commented 4 years ago

This would be handy. It looks like PR #620 exists from last year with these changes.