Skip to content

Instantly share code, notes, and snippets.

@axdemelas
Last active June 12, 2016 17:59
Show Gist options
  • Save axdemelas/a1660ec75c582e3e8eb6 to your computer and use it in GitHub Desktop.
Save axdemelas/a1660ec75c582e3e8eb6 to your computer and use it in GitHub Desktop.
Example of onstepcomplete event
var stepperElement = document.querySelector('.mdl-stepper');
// Select any step.
var step = element.querySelector('.mdl-step');
step.addEventListener('onstepcomplete', function (event) {
// When MaterialStepper.next() method is called on step (this) and it returns true.
alert('Good! this step was completed.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment