more navigation information and chances of intervention#29
more navigation information and chances of intervention#29danielgindi wants to merge 1 commit intojosias-r:mainfrom
Conversation
added "close-button" exit reason `onFinish`/`onStep` callbacks (`onStart` is not always enough) and `cleanupElement` complementing the existing `prepareElement`
|
@danielgindi Thanks again for this contribution. Could you elaborate what the use case here is, why the existing callbacks did not suffice? |
Hi again! Well I had some preparation needed for an element, that needs to be reversed when leaving that element. Unfortunately, the existing callbacks will require me to manage this in the "next" of the previous element, and the "prev" of the next element, as the user has multiple ways to navigate to the same step. Also if I want to track the current step number, without adding a next+prev callback to every step, considering I needed I started by overriding the prototype, adding Promise based callbacks in all of those points, but then decided to do it your way with the |
added "close-button" exit reason
onFinish/onStepcallbacks (onStartis not always enough),and
cleanupElementcomplementing the existingprepareElement