glhd / alpine-wizard

Multi-step wizard helpers for Alpine.js
MIT License
148 stars 3 forks source link

Question: canGoForward() #10

Closed paulpreibisch closed 10 months ago

paulpreibisch commented 10 months ago

Hi there, thanks for the plugin.

I am trying to undestand $wizard.canGoForward()

does this return true if validation succeeds? and false if it fails? when is validation run?

inxilpro commented 10 months ago

Yeah, canGoForward() returns true if the current step is complete and there is a step after it.