Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

v0.2.1

Compare
Choose a tag to compare
@cristijora cristijora released this 26 Apr 19:31
· 315 commits to master since this release

New

Async validator support #1

//template
<tab-content  :before-change="validateAsync">
</tab-content>

//js 
validateAsync:function() {
    return new Promise((resolve, reject) => {
      setTimeout(() => {
        resolve(true)
      }, 1000)
    })
},

@on-validate event is emitted now whenever a before-change function is executed
@on-error event is emitted when an an async before-change is rejected with a message

Error state for tabs

Thanks to @femanso for the idea and the #4 PR from which certain things were added.
You can now choose an error color which the tab will have when the beforeChange function fails.
See updated form integration fiddle

<form-wizard error-color="#e74c3c">
</form-wizard>

Fixes

Fix before-change not executing when clicking finish button