# SiWizardComponent documentation

**Kind:** component

**Selector:** `si-wizard`

```
import { SiWizardComponent } from '@siemens/element-ng/wizard';
```

```
component SiWizardComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [backText](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L96-L96>) | `TranslatableString` | `` $localize`:@@SI_WIZARD.BACK:Back` `` | Description of back button. |
| [cancelText](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L145-L145>) | `TranslatableString` | `` $localize`:@@SI_WIZARD.CANCEL:Cancel` `` | Description of cancel button. |
| [completionPageVisibleTime](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L163-L163>) | `number` | `3000` | Define how many milliseconds the completion page is visible. |
| [completionText](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L136-L136>) | `TranslatableString` | `` $localize`:@@SI_WIZARD.COMPLETED:Wizard completed!` `` | Text shown if you complete the wizard. |
| [enableCompletionPage](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L157-L157>) | `boolean` | `false` | Display a predefined page by the end of the wizard. |
| [hasCancel](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L151-L151>) | `boolean` | `false` | Show the cancel button |
| [hideNavigation](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L112-L112>) | `boolean` | `false` | Hide the navigation buttons previous/next. |
| [hideSave](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L127-L127>) | `boolean` | `false` | Hide the save button. |
| [inlineNavigation](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L199-L199>) | `boolean` | `false` | Set false to show navigation buttons in footer instead of inline. |
| [nextText](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L105-L105>) | `TranslatableString` | `` $localize`:@@SI_WIZARD.NEXT:Next` `` | Description of next button. |
| [saveText](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L121-L121>) | `TranslatableString` | `` $localize`:@@SI_WIZARD.SAVE:Save` `` | Description of save button. |
| [showStepNumbers](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L205-L205>) | `boolean` | `false` | Use number representation for steps. |
| [showVerticalDivider](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L211-L211>) | `boolean` | `false` | Set to true to display a divider between the steps and the content in the vertical |
| [stepActiveIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L175-L175>) | `string` | `'elementRadioChecked'` | Class name of icon shown for the active step. |
| [stepCompletedIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L181-L181>) | `string` | `'elementCheckedFilled'` | Class name of icon shown when a step was completed. |
| [stepFailedIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L187-L187>) | `string` | `'elementWarningFilled'` | Class name of icon shown when a step had an error. |
| [stepIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L169-L169>) | `string` | `'elementNotChecked'` | Class name of icon shown for current and upcoming steps. |
| [verticalLayout](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L193-L193>) | `boolean` | `false` | Set the orientation of the wizard to vertical. |
| [verticalMaxSize](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L215-L215>) | `string \| undefined` |  | Set the wizard step container max size in vertical layout. |
| [verticalMinSize](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L213-L213>) | `string \| undefined` |  | Set the wizard step container min size in vertical layout. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [completionAction](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L218-L218>) | `void` | Callback function triggered after the wizard has been completed. |
| [wizardCancel](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L221-L221>) | `void` | Callback function triggered if the wizard has been canceled. |

#### Attributes and Methods

##### back

[Source for back](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L381-L387>)

Go to the previous wizard step.

```
back(delta?: number = 1): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [delta](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L381-L381>) (optional) | `number` | `1` | • optional number of steps to move backwards. |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### currentStep

[Source for currentStep](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L234-L236>)

**Modifiers:** readonly

**Type:** `SiWizardStepComponent | undefined`

Get current visible wizard step.

##### index

[Source for index](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L224-L226>)

**Modifiers:** readonly

**Type:** `number`

Get the current step wizard step index.

##### next

[Source for next](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L356-L367>)

Go to the next wizard step.

```
next(delta?: number = 1): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [delta](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L356-L356>) (optional) | `number` | `1` | • optional number of steps to move forward. |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### save

[Source for save](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L390-L402>)

Triggers the save action to complete the wizard.

```
save(): void
```

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

##### stepCount

[Source for stepCount](<https://github.com/siemens/element/blob/main/projects/element-ng/wizard/si-wizard.component.ts#L229-L231>)

**Modifiers:** readonly

**Type:** `number`

Get number of wizard steps.

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
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.

```
type TranslatableString = string & Translatable
```
