# Slider

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

## Basic

#### Default Value

Enter the default number to decide the value when the widget is loaded. This can also be retrieved from the backend using query or loaded using low-code.

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

#### Maximum

Provide the number that decides the maximum value the widget will show to the users, and they cannot type or enter any value beyond this number.

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

#### Minimum

Provide the number that decides the minimum value the widget will show to the users, and they cannot type or enter any value lower than this number.

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

#### Step

The value must be greater than 0 and divisible by Maximum and Minimum. When the user drags the slider forward, this number will be added to the current number and vice versa when the user slides backward.

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

## Interaction

#### Event Handlers

| Event                                         | Description                                                                                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">**`Change`**</mark> | <p>The "Change" event is activated when the value of the widget is changed. When this event triggers, the associated action gets executed.<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-672dfcc7057f6d8ef62e8b3d953d6023b9a31a4c%2Fimage%20(315).png?alt=media" alt=""></p> |

#### 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. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.

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

#### 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>

## Label

Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI

#### Position

| Property | Description                                                                                                                                                                                                                                                                                 |
| :------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `Left`  | <p>Shows the label on the left side of the widget entry<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-f17f1bd96e34acb75a4b1ccb5c87946653dc8dc3%2Fimage%20(11).png?alt=media" alt=""></p> |
|   `Top`  | <p>Shows the label on top of the widget entry<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-a57a03a4795e91ab0d95487e25046eeb4f9b7fb6%2Fimage%20(13).png?alt=media" alt=""><br></p>       |

#### Alignment

| Property | Description                                                                                                                                                                                                                                                                                                    |
| :------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `Left`  | <p>Align the text on the left corner of the label area<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-f17f1bd96e34acb75a4b1ccb5c87946653dc8dc3%2Fimage%20(12).png?alt=media" alt=""></p>                     |
|  `Right` | <p>Align the text on the right corner of the label area near the tree view<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-8b1c88df28339c681dea85da49521bfa49ee0089%2Fimage%20(14).png?alt=media" alt=""></p> |

#### Width

Enter a number value to set the width of the widget. It can be set in terms of pixels and percentage.

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

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

## Layout

#### Prefix Icon

Choose one from the set of icons that will be displayed as a prefix logo, just before the slider.

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

#### Suffix Icon

Choose one from the set of icons that will be displayed as a suffix logo, just after the slider.

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

#### Widget Tooltip

This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

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

## Style

<table><thead><tr><th width="218" align="center">Property</th><th>Description</th></tr></thead><tbody><tr><td align="center">Label</td><td>Set the colour for the label text. Recommended to set in contrast with the background.</td></tr><tr><td align="center">Fill</td><td>This property is for choosing the colour to fill the shape.</td></tr><tr><td align="center">Thumb Border</td><td>Represents the border colour of the "thumb" that the user can move within the "groove" of the widget to alter its numerical value. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-slider-thumb">MDN web docs</a></td></tr><tr><td align="center">Thumb</td><td>Represents the colour of the "thumb" that the user can move within the "groove" of the widget to alter its numerical value. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-slider-thumb">MDN web docs</a></td></tr><tr><td align="center">Track</td><td>Represents the colour of the "track" the groove in which the indicator slides of the widget. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-slider-runnable-track">MDN web docs</a></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">Prefix Icon Color</td><td>Choose a specific color for the icon that appears before the actual widget content.</td></tr><tr><td align="center">Suffix Icon Color</td><td>Choose a specific color for the icon that appears after the actual widget content.</td></tr><tr><td align="center">Prefix Icon Size</td><td>Set the size of the prefix icon in px value - 12px</td></tr><tr><td align="center">Suffix Icon Size</td><td>Set the size of the suffix icon in px value - 12px</td></tr></tbody></table>
