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

I don't understand how to use isValidated() method #1

Closed
ykptke opened this issue Jun 11, 2016 · 3 comments
Closed

I don't understand how to use isValidated() method #1

ykptke opened this issue Jun 11, 2016 · 3 comments
Assignees
Labels

Comments

@ykptke
Copy link

ykptke commented Jun 11, 2016

I can't access refs.component isValidated() method from step component. please help me

@newbreedofgeek
Copy link
Owner

@ykptke sorry my example code in the src/examples directory is bad. I will post a better example soon.

But in the Step component, if you need validation then you should expose a isValidated() method that return true (if form input is valid) or false (if form input is not valid).

StepZilla will check for the existence of a isValidated() method is a Step component, if found it then will validate the component before going to the next.

So basically you don't need to access refs.component isValidated() yourself.

Give me a few hours and i'll post a complete example.

@ykptke
Copy link
Author

ykptke commented Jun 14, 2016

@newbreedofgeek thanks. 👍 I look forward to your example

@newbreedofgeek
Copy link
Owner

newbreedofgeek commented Jun 14, 2016

@ykptke I pushed 1.7.0 (85eaa12) to master and npm. It has a complete working example in src/examples

You can run it in the browser like so:

  • run npm install
  • then run npm run example
  • then go to http://localhost:8080/webpack-dev-server/src/examples/index.html in your browser

Hope this helps you.

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

No branches or pull requests

2 participants