Skip to content

ShepherdModalAPI

Defined in: components/shepherd-modal.ts:37

Controls the overlay behind a tour. Reached through tour.modal.

closeModalOpening: () => void

Defined in: components/shepherd-modal.ts:41

Removes the opening, so the overlay covers the whole page.

void


destroy: () => void

Defined in: components/shepherd-modal.ts:45

Removes the overlay from the DOM.

void


getElement: () => SVGElement

Defined in: components/shepherd-modal.ts:74

Returns the overlay’s <svg> element.

SVGElement


hide: () => void

Defined in: components/shepherd-modal.ts:49

Hides the overlay.

void


positionModal: (modalOverlayOpeningPadding?, modalOverlayOpeningRadius?, modalOverlayOpeningXOffset?, modalOverlayOpeningYOffset?, targetScrollParent?, targetElement?, extraHighlights?) => void

Defined in: components/shepherd-modal.ts:53

Moves the opening to the given target and extra highlights.

number

ModalRadiusType

number

number

HTMLElement | null

HTMLElement | null

HTMLElement[]

void


setupForStep: (step) => void

Defined in: components/shepherd-modal.ts:66

Shows the overlay and keeps its opening on the step’s target, or hides the overlay when the tour does not use useModalOverlay.

Step

void


show: () => void

Defined in: components/shepherd-modal.ts:70

Shows the overlay.

void