(options: {
id: string;
text: string;
selector: string;
position?: Shepherd.Step.StepOptions['attachTo']['on'];
canClickTarget?: boolean;
})
| 20 | } |
| 21 | |
| 22 | function buildStepOption(options: { |
| 23 | id: string; |
| 24 | text: string; |
| 25 | selector: string; |
| 26 | position?: Shepherd.Step.StepOptions['attachTo']['on']; |
| 27 | canClickTarget?: boolean; |
| 28 | }): Shepherd.Step.StepOptions { |
| 29 | return { |
| 30 | id: options.id, |
| 31 | text: options.text, |
| 32 | attachTo: { |
| 33 | element: options.selector, |
| 34 | on: options.position, |
| 35 | }, |
| 36 | canClickTarget: false, |
| 37 | beforeShowPromise: buildWatchDom(options.selector), |
| 38 | }; |
| 39 | } |
| 40 | |
| 41 | export const steps: Shepherd.Step.StepOptions[] = [ |
| 42 | { |