Last active
June 12, 2016 17:58
-
-
Save axdemelas/1c03c00670124425eb76 to your computer and use it in GitHub Desktop.
Example of onsteperror event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stepperElement = document.querySelector('.mdl-stepper'); | |
// Select any step. | |
var step = stepperElement.querySelector('.mdl-step'); | |
step.addEventListener('onsteperror', function (event) { | |
// When MaterialStepper.error(message) method is called on step (this). | |
alert('Ops! something goes wrong with this step'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment