MikaelEdebro / vue-airbnb-style-datepicker

A VueJs datepicker with a similar look and functionality as the popular AirBnb datepicker.
https://mikaeledebro.gitbooks.io/vue-airbnb-style-datepicker/
MIT License
505 stars 105 forks source link

Changing the 'Apply', 'Cancel' text to be a prop #111

Open goldendoodledev opened 5 years ago

goldendoodledev commented 5 years ago

Hello! I need to be able to update the 'Apply' text found in data.texts.apply. Could we move this object out of data and into props, with the current values set as the default? I'd be happy to submit a PR for this if you are interested.

Thanks!

MikaelEdebro commented 5 years ago

This can currently only be set when instantiating the plugin. It has later been clear that this is not the best design choice. And a better approach would be to allow to set all those as props instead (to be able to accomodate dynamic language changes etc). So if you're up for that I'd gladly accept a PR?!

https://mikaeledebro.gitbooks.io/vue-airbnb-style-datepicker/INSTALLATION.html#plugin-options

goldendoodledev commented 5 years ago

Great! I will put it together. Thank you!

goldendoodledev commented 5 years ago

I have a draft ready, I am just going to get someone to review it before I submit the PR to you. Hopefully will be submitted by Monday.