Skip to content
Edit this page

TourStep Type documentation

TypeScript declaration

import type { TourStep } from '@siemens/element-ng/tour';

Options for each tour step.

Properties

Types Documentation

import type { TourStepCommonOptions } from '@siemens/element-ng/tour';

Common options for tour step and as default for tour step

Properties
  • A function that returns a promise. When the promise resolves, the next step will be shown. This can be used to 'clean up' action from beforeShowPromise.

    beforeNextPromise ? : (() => Promise<any>)

  • A function that returns a promise. When the promise resolves, the step will be shown. E.g. use this to open dialogs, etc.

    beforeShowPromise ? : (() => Promise<any>)

  • Whether Scroll the element into view.

    scrollTo ? : boolean | ScrollIntoViewOptions

  • Custom handler to perform scrolling.

    scrollToHandler ? : ((element: HTMLElement) => void)

import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.


Except where otherwise noted, content on this site is licensed under MIT License.