Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customisation of placeholders within the picker header #80

Open
knash94 opened this issue Feb 11, 2021 · 1 comment
Open

Allow customisation of placeholders within the picker header #80

knash94 opened this issue Feb 11, 2021 · 1 comment

Comments

@knash94
Copy link

knash94 commented Feb 11, 2021

Hey @mathieustan, firstly great work on this plugin. It's nice to have a single date picker that supports the selection of months, quarters & years.

I'm having a slight issue with customizing the placeholders that are displayed on the date picker window when no value is selected. These are currently defaulting to - & --. Would it be possible to add a prop that could override the default placeholder, or alternatively a way to add classes to the date picker window?

image

Thanks and keep up the hard work

@alejandrosobko
Copy link

@knash94 I have the same issue. A workaround is to set the property as new Date().

  data: function() {
    return {
      dob: new Date(),
      dateChanged: false
    }
  },

So it will have a value to show:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants