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

v-model is not working #60

Open
RakibSiddiquee opened this issue Jul 17, 2019 · 6 comments
Open

v-model is not working #60

RakibSiddiquee opened this issue Jul 17, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request todo 🗒️

Comments

@RakibSiddiquee
Copy link

How to get value of the range picker in change event? I tried using v-model, but its not working.
Please help.

@ly525
Copy link
Owner

ly525 commented Jul 17, 2019

@RakibSiddiquee Sorry, I got a todo list for v-model:

You can use @change and value to mock v-model temporarily, I will implement the function this weekday.

@RakibSiddiquee
Copy link
Author

How to pass the value in @change? any example?

@ly525
Copy link
Owner

ly525 commented Jul 17, 2019

@RakibSiddiquee sorry, I almost forgot that we do not support prop: value, you need to set startDate and endDate to mock value temporarily I will support value(Array) prop soon.

@ly525
Copy link
Owner

ly525 commented Jul 17, 2019

@RakibSiddiquee I have updated the docs

If you has any question, please let me know!

<template>
  <div>
    <v-md-date-range-picker
      :opens="opens"
      start-date="2019-01-01"
      end-date="2019-01-02"
      @change="handleChange"
    ></v-md-date-range-picker>
    <div style="margin: 10px">
      values: {{values}}
    </div>
  </div>
</template>
<script>
export default {
  data: () => ({
    values: [],
  }),
  methods: {
    handleChange (values) {
      console.log(values)
      this.values = values
    }
  }
}
</script>

@RakibSiddiquee
Copy link
Author

RakibSiddiquee commented Jul 17, 2019

That's great! You saved my day dude.

@ly525
Copy link
Owner

ly525 commented Jul 17, 2019

@RakibSiddiquee I will mark this issue as TODO, If I complete it, I will @you. If you has any question, please let me know.

@ly525 ly525 added enhancement New feature or request todo 🗒️ labels Jul 17, 2019
@ly525 ly525 self-assigned this Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo 🗒️
Projects
None yet
Development

No branches or pull requests

2 participants