MCPcopy
hub / github.com/shipshapecode/shepherd / TourOptions

Interface TourOptions

shepherd.js/src/tour.ts:32–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 * The options for the tour
31 */
32export interface TourOptions {
33 /**
34 * If true, will issue a `window.confirm` before cancelling.
35 * If it is a function(support Async Function), it will be called and wait for the return value,
36 * and will only be cancelled if the value returned is true.
37 */
38 confirmCancel?: TourConfirmCancel;
39 /**
40 * The message to display in the `window.confirm` dialog.
41 */
42 confirmCancelMessage?: string;
43 /**
44 * The prefix to add to the `shepherd-enabled` and `shepherd-target` class names as well as the `data-shepherd-step-id`.
45 */
46 classPrefix?: string;
47 /**
48 * Default options for Steps ({@link Step#constructor}), created through `addStep`.
49 */
50 defaultStepOptions?: StepOptions;
51 /**
52 * Exiting the tour with the escape key will be enabled unless this is explicitly
53 * set to false.
54 */
55 exitOnEsc?: boolean;
56 /**
57 * Explicitly set the id for the tour. If not set, the id will be a generated uuid.
58 */
59 id?: string;
60 /**
61 * Navigating the tour via left and right arrow keys will be enabled
62 * unless this is explicitly set to false.
63 */
64 keyboardNavigation?: boolean;
65 /**
66 * An optional container element for the modal.
67 * If not set, the modal will be appended to `document.body`.
68 */
69 modalContainer?: HTMLElement;
70 /**
71 * An optional container element for the steps.
72 * If not set, the steps will be appended to `document.body`.
73 */
74 stepsContainer?: HTMLElement;
75 /**
76 * An array of step options objects or Step instances to initialize the tour with.
77 */
78 steps?: Array<StepOptions> | Array<Step>;
79 /**
80 * An optional "name" for the tour. This will be appended to the the tour's
81 * dynamically generated `id` property.
82 */
83 tourName?: string;
84 /**
85 * Whether or not steps should be placed above a darkened
86 * modal overlay. If true, the overlay will create an opening around the target element so that it
87 * can remain interactive
88 */
89 useModalOverlay?: boolean;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected