WalkMe Player Events
BeforeMenuOpen Triggered before the menu element is shown.
AfterMenuOpen Triggered after the menu element is shown.
BeforeMenuClose Triggered before the menu element is removed.
AfterMenuClose Triggered after the menu element is removed.
WalkthruSelected Triggered before the menu element is shown.
WalkMeAPI.events.on('SwtButtonClicked', function(eventData){
    if(eventData.isBack) {
      console.log('Back button is clicked.')
    } else if(!eventData.nextStepId) {
      console.log('Done button is clicked.')
    } else {
      console.log('Next button is clicked. Next step is: ' + eventData.nextStepId)
    }
  });