fortesinformatica / Sideshow

Sideshow is a powerful javascript library which aims to reduce your user's learning curve by providing a way to create step-by-step interactive tours. Explain the features of your application, control your end-user's interaction with your UI, emphasize what you're explaining in each step by masking it. Just think! The sky is the limit!
http://fortesinformatica.github.io/Sideshow
Apache License 2.0
86 stars 31 forks source link

Novos listeners ao sideshow #33

Open ronaldohoch opened 2 years ago

ronaldohoch commented 2 years ago

BeforeStart, BeforeLeave.

Meu caso: Eu tenho um webapp que, quando utilizo o sideshow eu terei que bloquear alguns botões que alteram ou mudam as coisas de lugar, por exemplo: O botão de preview remove todos os menus.

Utilizar o BeforeStep e AfterStep até que resolvem parcialmente, mas se o usuário resolver fechar o tutorial antes de passar por esses passos eu não terei como saber que ele fechou para poder rodar o código que eu necessito.

Eu poderia resolver isso com css, mas o sideshow também não adiciona nenhuma classe ao body.

Então, seriam outros 2 listners. BeforeStart: Executa uma função antes do sideshow abrir. BeforeLeave: Executa uma função ao sair do sideshow.