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

Can't select dates programmaticaly #80

Open
Serguei12345 opened this issue Dec 17, 2018 · 1 comment
Open

Can't select dates programmaticaly #80

Serguei12345 opened this issue Dec 17, 2018 · 1 comment

Comments

@Serguei12345
Copy link

Hello,

I need to select dates programmatically, but when I set dates, they are not setted visually (only in my component instance and not in the vue).

How could I set them visually please?

Best regards,
Serguei.

@ThomasRalee
Copy link

This is what i've tried:

props: {
  from: {
    type: String,
    default: null,
  },
  to: {
    type: String,
    default: null,
  },
},

created() {
  this.dateFrom = from;
  this.dateTo = to;
},

data() {
  return {
    dateFrom: null,
    dateTo: null,
  }
}

This will set the dates programmatically, but it does not highlight the cells inbetween the dates.

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