# TourStepCommonOptions Type documentation

## TypeScript declaration

### [TourStepCommonOptions](<https://github.com/siemens/element/blob/main/projects/element-ng/tour/si-tour.model.ts#L8-L25>)

**Kind:** interface

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

Common options for tour step and as default for tour step

```
interface TourStepCommonOptions
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [beforeNextPromise](<https://github.com/siemens/element/blob/main/projects/element-ng/tour/si-tour.model.ts#L24-L24>) (optional) | `(() => Promise<any>)` | 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`. |
| [beforeShowPromise](<https://github.com/siemens/element/blob/main/projects/element-ng/tour/si-tour.model.ts#L18-L18>) (optional) | `(() => 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. |
| [scrollTo](<https://github.com/siemens/element/blob/main/projects/element-ng/tour/si-tour.model.ts#L10-L10>) (optional) | `boolean \| ScrollIntoViewOptions` | Whether Scroll the element into view. |
| [scrollToHandler](<https://github.com/siemens/element/blob/main/projects/element-ng/tour/si-tour.model.ts#L12-L12>) (optional) | `((element: HTMLElement) => void)` | Custom handler to perform scrolling. |
