# Steps

## Basic

#### Steps

List down the number of steps involved here. Each step should specify the following details.

|  Property | Description                                                        |
| :-------: | ------------------------------------------------------------------ |
|   `name`  | The name to be displayed near the step icon                        |
| `tooltip` | The text to be shown as the user hovers the mouse over the stepper |
|    `id`   | This is for development purpose to set an id for each step         |
|  `widget` | The name of the widget attached in the step                        |

```json
[{"name":"Profile Info","tooltip":"Enter your profile information","id":0,"widget":"w1"},{"name":"Upload Docs","tooltip":"Upload the documents required","id":1,"widget":"w2"},{"name":"Choose Services","tooltip":"some tooltip","id":2,"widget":"w3"},{"name":"Submit","tooltip":"some tooltip","id":3,"widget":"w4"}]
```

## Interaction

#### Event Handlers

| Event                                               | Description                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**`Click`**</mark>        | <p>This event will be triggered when the user clicks on the icon.<br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-e03606ebaa039ac4c6aa3cec8eb669615ef08ed5%2Fimage%20(203).png?alt=media" alt=""></p>  |
| <mark style="color:blue;">**`Step Changed`**</mark> | <p>This event will be triggered when the moves to another stepper.<br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-8c405b1e40216e5b012e0886a7127e0f24e374c5%2Fimage%20(217).png?alt=media" alt=""></p> |

#### Hide

This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-4aaa812d0b623487c085a616219a4515138079fb%2Fimage%20(211).png?alt=media" alt="" width="338"><figcaption><p>Set the visibility</p></figcaption></figure>

#### Disabled

Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-695f356d5e8bc58072102f50922157508eb6122b%2Fimage%20(224).png?alt=media" alt=""><figcaption><p>Read-only</p></figcaption></figure>

## Layout

#### Theme

| Property       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Dot            | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FAyThqWo68kNruQ2i2Kmd%2Fimage.png?alt=media&#x26;token=9cf7d170-55f9-4e50-96e2-9d72f64e16d5" alt="" data-size="line">![](https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FVNeaysSgcsbYtEljDKSF%2Fimage.png?alt=media\&token=13e24e9a-c988-4b97-8577-9377e89a2b57) |
| Number         | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2F6tzPH8bzacg07b42f38Y%2Fimage.png?alt=media&#x26;token=d591d121-771b-48b2-89b6-7589b9ad4a66" alt="" data-size="original">                                                                                                                                                                                                               |
| Icon           | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FcUcfkNMKjNI5qaV8sQVT%2Fimage.png?alt=media&#x26;token=3f9eea80-075f-4655-a6f9-3f00bce1c02b" alt="" data-size="original">                                                                                                                                                                                                               |
| Icon with Text | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FbAmjYLEn9IvnqY7sXbwJ%2Fimage.png?alt=media&#x26;token=5436616c-5830-4cfa-9712-019d4b40a892" alt="" data-size="original">                                                                                                                                                                                                               |
| Tiles          | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FtUIfjo9XFWDkobYiFKD9%2Fimage.png?alt=media&#x26;token=3ccf7f0d-d38a-4020-9191-fcb5554ce83c" alt="" data-size="original">                                                                                                                                                                                                               |
| Percentage     | <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FPi2VvwtD8qXh1j1ESmLL%2Fimage.png?alt=media&#x26;token=e20bba08-2c2a-479e-8e39-9911ebdafc63" alt="" data-size="original">                                                                                                                                                                                                               |

#### Mode

The Stepper widget provides two modes to customize its layout.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-35d673ab96a5ef1931f9762e444a0e534af433d8%2Fimage%20(218).png?alt=media" alt="" width="327"><figcaption><p>Vertical or Horizontal</p></figcaption></figure>

|  `Vertical`  | The stepper widget displays steps vertically.   |
| :----------: | ----------------------------------------------- |
| `Horizontal` | The stepper widget displays steps horizontally. |

#### Initial Step for Stepper

This is the index based number which specifies the step number that should be displayed for users to start with the widget.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-cff6f7dcab10b6eb43eefecb5ade07fe93a45c5b%2Fimage%20(219).png?alt=media" alt="" width="329"><figcaption><p>Initial step to start with</p></figcaption></figure>

#### Hide Body

Hides the body of the widget content and shows only the steps section.

#### Hide Footer

Hides only the footer section of the widget, removing the 'Previous' and 'Next' buttons.

#### Progress Percentage

Enter a numerical value in this field and this will set the percentage value during the progress of each step.

## Style

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Background</td><td>Users can change the colour of the text background using this property. It has all the RGB colour ranges to pick from. It is recommended to use a corresponding background colour that shows the font clearly.</td></tr><tr><td align="center">Border Color for Completed Steps</td><td>Set the colour to the border lines for the steps that are completed.</td></tr><tr><td align="center">Margin</td><td>This value is set in terms of "px" number which creates the space between the border and the content of the widget.</td></tr><tr><td align="center">Padding</td><td>This value is set in terms of "px" number which creates the space between the border and outer elements.</td></tr><tr><td align="center">Border Color</td><td>Set the colour to the border lines for the steps where the user did not complete the step.</td></tr><tr><td align="center">Border Radius</td><td>This sets the radius of the widget's corners, enabling rounded corners on the widget. This value is defined in "px" terms.</td></tr><tr><td align="center">Border Width</td><td>Set the thickness of the border of the widget using this value. It is defined using "px" terms.</td></tr><tr><td align="center">Text Weight</td><td>Increase or decrease the thickness of the font using the list of numbers from 100-800.</td></tr></tbody></table>

## Body Style

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Body Padding</td><td>This value is set in terms of "px" number which creates the space between the body border and other elements of the widget.</td></tr><tr><td align="center">Background</td><td>Users can change the colour of the background using this property. It has all the RGB colour ranges to pick from.</td></tr><tr><td align="center">BG Image</td><td>Provide the URL for the image serves as the background image to the widget</td></tr><tr><td align="center">BG Repeat</td><td>Controls the repetition of the widget's background image.<br><code>repeat</code> - The background image is repeated both vertically and horizontally.<br><code>no-repeat</code> - The background-image is not repeated. The image will only be shown once.<br>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat">MDN web docs</a></td></tr><tr><td align="center">BG Size</td><td><p>Specifies the size of the background image.<br><code>auto</code>- Default value. The background image is displayed in its original size<br>cover - Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges</p><p>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size">MDN web docs</a></p></td></tr><tr><td align="center">BG Position</td><td>Sets the starting position of a background image.<br>center - keeps the image at the center position.<br>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position">MDN web docs</a></td></tr><tr><td align="center">BG Origin</td><td>Specifies the origin position (the background positioning area) of the background image. The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin">MDN web docs</a></td></tr></tbody></table>

## Footer Style

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Footer Padding</td><td>This value is set in terms of "px" number which creates the space between the footer border and other elements of the widget.</td></tr><tr><td align="center">Background</td><td>Users can change the colour of the background using this property. It has all the RGB colour ranges to pick from.</td></tr><tr><td align="center">BG Image</td><td>Provide the URL for the image serves as the background image to the widget</td></tr><tr><td align="center">BG Repeat</td><td>Controls the repetition of the widget's background image.<br><code>repeat</code> - The background image is repeated both vertically and horizontally.<br><code>no-repeat</code> - The background-image is not repeated. The image will only be shown once.<br>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat">MDN web docs</a></td></tr><tr><td align="center">BG Size</td><td><p>Specifies the size of the background image.<br><code>auto</code>- Default value. The background image is displayed in its original size<br>cover - Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges</p><p>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-size">MDN web docs</a></p></td></tr><tr><td align="center">BG Position</td><td>Sets the starting position of a background image.<br>center - keeps the image at the center position.<br>The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-position">MDN web docs</a></td></tr><tr><td align="center">BG Origin</td><td>Specifies the origin position (the background positioning area) of the background image. The reference to the list of options can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin">MDN web docs</a></td></tr></tbody></table>
