Open main menu

Extension:GuidedTour/Moving between tours discussion 2014-06-05

< Extension:GuidedTour

The goal is to have a way of specifying a step in a builder, anywhere it can be currently specified (next, back, transition), even when it's in another tour. At some point, we can also change existing internal IDs (e.g. tourId and tourInfo) to use this.

We went with a gt.StepID value object for this, with a constructor passing in tourName and stepName: new gt.StepID( tourName, stepName ) );

Notes from meetingEdit 'gt-firstedit-preview' ) // Kind of weird gt.referenceStep( 'firstedit', 'preview' ) ); // made up [ 'firstedit', 'preview' ] ); { tour: 'name', step: 'name' } );
new Step.ID( 'firstedit', 'preview' ); = function ( tourName, stepName ) { return new StepID( tourName, stepName ); }; tourName, stepName) ); gt.stepId( tourName, stepName) ); new gt.StepID( tourName, stepName ) ); function () {
    return tourLoader.load( tourName ).startAt( stepName );