Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

Group Example: values #335

Open
heygambo opened this issue Oct 29, 2016 · 3 comments
Open

Group Example: values #335

heygambo opened this issue Oct 29, 2016 · 3 comments

Comments

@heygambo
Copy link
Contributor

heygambo commented Oct 29, 2016

vue & vue-validator version

2.0.3, alpha.1

In this example:
https://github.com/vuejs/vue-validator/blob/b5136d8aea547058b9480b874957061fc38ec9b0/examples/group/index.html

How would you access the actual value of the inputs?

@heygambo heygambo changed the title https://github.com/vuejs/vue-validator/blob/b5136d8aea547058b9480b874957061fc38ec9b0/examples/group/index.html Group Example: values & textarea Oct 29, 2016
@heygambo heygambo changed the title Group Example: values & textarea Group Example: values Oct 29, 2016
@kazupon
Copy link
Owner

kazupon commented Oct 29, 2016

You can access with event args of input event handler.
e.g.

handleValidate (e) {
  const value = e.target.value
  ...
}

@heygambo
Copy link
Contributor Author

heygambo commented Oct 29, 2016

But I cannot combine that with v-model, right?

I've tried that but then the browser crashed and I had to kill it the hard way.

@woshi82
Copy link

woshi82 commented Nov 2, 2016

@kazupon the way you show to get value is not elastic,
1、must i bind input event to every form input to get its value?
2、it seem like only bind @input | @change event can activate the validators?

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

No branches or pull requests

3 participants