# Text Area

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2F95M7mtMiWvoWOLS7nekV%2Fimage.png?alt=media&#x26;token=a82515ec-7d51-41aa-89f1-1e33707ebceb" alt=""><figcaption></figcaption></figure>

## Basic

#### Default Value

Enter the default string to be displayed 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>

#### Placeholder

Specifies a hint that describes the expected value. The placeholder shows the hint text in the widget when nothing is selected or entered. This text disappears as soon as a value is entered in the control.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FHIUe123zzzd2vIsb5fMI%2Fimage.png?alt=media&#x26;token=1f514fdd-c7c7-443c-8165-56dbb1746223" alt=""><figcaption></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 tree view<br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-264c9b8da9aa630a83b849bf78ba0d8d2b00564b%2Fimage%20(222).png?alt=media" alt=""></p> |
|   `Top`  | <p>Shows the label on top of 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-ac6993726b4374cffc76a50e4cee761d6c382cf9%2Fimage%20(228).png?alt=media" alt=""><br></p>   |

#### Alignment

| Property | Description                                                                                                                                                                                                                                                                                                     |
| :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `Left`  | <p>Align the text on the left corner of the label area<br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-264c9b8da9aa630a83b849bf78ba0d8d2b00564b%2Fimage%20(227).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-72159682adb9dbbeffab5495550b77275fa2e90f%2Fimage%20(229).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>

## 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>                                                                                |
| <mark style="color:blue;">**`Focus`**</mark>  | <p>This event is triggered when the widget receives focus, meaning it becomes the active element that can accept user input.<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-3aec9c0873fdc0c399aae9ebffa29a05ecd8db27%2Fimage%20(313).png?alt=media" alt=""></p>                                                                                              |
| <mark style="color:blue;">**`Blur`**</mark>   | <p>This event occurs when the user shifts the focus out of the widget. This can happen in different scenarios, such as when a user clicks outside an input widget they were typing in or when the user tabs to another field.<br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-24927cfad5e62fe4a99996f099833454cba63d05%2Fimage%20(314).png?alt=media" alt=""></p> |
| <mark style="color:blue;">**`Submit`**</mark> | <p>This event will be triggered when the user finishes entering the input and shifts focus away.<br><br><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-2870ab067617e4fea300b5ec6f435e2e08bcabaa%2Fimage%20(81).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>

## Layout

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

#### Height

|       |                                             |
| ----- | ------------------------------------------- |
| Auto  | The height is auto-adjusted for the content |
| Fixed | The height of the widget is fixed           |

#### Horizontal Alignment

| Property                                                                                                                                                                                                                                       | Layout                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-9155278c964039f7450ad9178047f477dbad5647%2Fimage%20(102).png?alt=media" alt="" data-size="original"> | `Left` - The menu is attached to the left side of the screen             |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-6128c57def92bf328a1eacd27a2550d6010a2192%2Fimage%20(103).png?alt=media" alt="" data-size="original"> | `Center` - The menu is placed at the center part of the screen           |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-694c92027ed5994cf2379efa1b4b7fa0ddaddca6%2Fimage%20(104).png?alt=media" alt="" data-size="original"> | `Right` - The menu is attached to the right side of the screen           |
| <img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2Fgit-blob-2c90178c4c29960566a4762cf4b8879cd4c779b3%2Fimage%20(105).png?alt=media" alt="" data-size="original"> | Justify - The menu is adjusted and justified to the width of the screen. |

#### 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%2FjEqNxdgvqegvteTnp6FN%2Fimage.png?alt=media&#x26;token=826b212d-3d0b-4de5-955a-aa78f469baaf" alt=""><figcaption></figcaption></figure>

#### Placement

Refers to the position of the tooltip.

| Property    | Description                                                                        |
| ----------- | ---------------------------------------------------------------------------------- |
| top         | Tooltip is placed at the top of the widget                                         |
| left        | Tooltip is placed to the left side of the widget                                   |
| bottom      | Tooltip is placed at the bottom of the widget                                      |
| right       | Tooltip is placed to the right side of the widget                                  |
| topLeft     | Tooltip is placed at the top left corner of the widget                             |
| topRight    | Tooltip is placed at the top right corner of the widget                            |
| bottomLeft  | Tooltip is placed at the bottom left corner of the widget                          |
| bottomRight | Tooltip is placed at the bottom right corner of the widget                         |
| leftTop     | Tooltip is positioned primarily to the left and slightly above the target element  |
| leftBottom  | Tooltip positioned at the left bottom of its target                                |
| rightTop    | Tooltip is positioned primarily to the right and slightly above the target element |
| rightBottom | Tooltip positioned at the right bottom of its target                               |

## Advanced

#### Show Clear Button

Displays a small 'x' type button at the end of the widget, which helps the user to clear out the previous entries and selections.

#### Read Only

Makes the entire widget disabled, and denies users any action over the element. It is grayed out for users' view to show it is read-only.

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

## Validation

#### Required Field

Refers to the field that must be completed by the user, which means the field must be entered with a valid value before submitting the information.

<figure><img src="https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FJIi4bvMA6LgDHen5iv4Y%2Fimage.png?alt=media&#x26;token=7678da33-7fa4-49ec-a3d5-fa73477c3ffb" alt=""><figcaption></figcaption></figure>

#### Text Type

| Value | Description                                                                                                                                                                                                                                                                                                                                                                             |
| ----- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Text  | Denotes the normal string of characters                                                                                                                                                                                                                                                                                                                                                 |
| Email | Denotes the string must be in the 'email address' format                                                                                                                                                                                                                                                                                                                                |
| URL   | Denotes the string must be in the web address format                                                                                                                                                                                                                                                                                                                                    |
| Regex | <p>Denotes the regular expression string and the value entered by the user must satisfy the regex format.<br>For example - consider this regex:</p><p><code>^\[A-Za-z]\[A-Za-z0-9\_]{7,29}$</code></p><p>This validates:<br>(1) If the entered value starts with alphabets and not numbers<br>(2) If the length of the string is more than 8 characters and less than 30 characters</p> |

#### Minimum Length

Enter the value for a minimum number of characters to be allowed, for example - 20. This means that the widget must have a minimum length of 20 characters to be entered by the user. The program will automatically validate the user input against the specified constraint. If the user input does not meet this constraint, it will show an error and the user will need to enter a valid value.

#### Maximum Length

Enter the value for a maximum number of characters in the field, for example - 250. This means that the widget must not exceed the maximum length of 250 characters. The program will automatically validate the user input against the specified constraint. If the user input exceeds the limit, it stops the keyboard entry into the widget.

#### Custom Rule

Apart from validating the entry using the regex rule, users can also use this property to write low-code and check other aspects. For example - check if the city selected in the previous field matches the desired value, throw a custom message to the user even before capturing the entry on this field.

## 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">Box Shadow</td><td>The is the colour of the shadow that is generated behind the widget box. The X and Y axis values can be altered such that the shadow can be set to fall anywhere behind the widget area.<br>"x-offset" - a positive number specifies the shadow will be on the right of the box, and a negative number will put the shadow on the left of the box.<br>"y-offset" - a negative one means the shadow will be above the box, and a positive number means the shadow will be below the box.<br>"Blur" - if the number is set to 0 then the shadow will be sharp. It will more blurred as the number goes higher, and the shadow will extend further away.<br>"Color" - sets the colour of the shadow. If the colour is not set, the box shadows are drawn in the foreground colour.</td></tr><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">Tooltip Style</td><td>There are 3 types of styles that can be applied: "normal" - The text is shown normally, no style applied. "italic" - The text is cursive. "oblique" - A sloped version of the normal text.</td></tr><tr><td align="center">Tooltip Size</td><td>Set the size of the text in px value - 12px</td></tr><tr><td align="center">Tooltip Width</td><td>Set the tooltip text width.</td></tr><tr><td align="center">Tooltip Font Family</td><td>Type the name of the font family. The reference to the list of font families can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family">MDN web docs</a></td></tr><tr><td align="center">Label Font Style</td><td>There are 3 types of styles that can be applied: "normal" - The text is shown normally, no style applied. "italic" - The text is cursive. "oblique" - A sloped version of the normal text.</td></tr><tr><td align="center">Label Text Size</td><td>Set the size of the text in px value - 12p</td></tr><tr><td align="center">Label Font Family</td><td>Type the name of the font family. The reference to the list of font families can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family">MDN web docs</a></td></tr><tr><td align="center">Text</td><td>Set the colour of the text. Recommended to set in contrast with the background.</td></tr><tr><td align="center">Text Transform</td><td>This property specifies how to capitalize an element's text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized. <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform">MDN web docs</a></td></tr><tr><td align="center">Text Decoration</td><td>This property sets the appearance of decorative lines on text. Types are "underline", "overline", "line-though", "overline-underline".</td></tr><tr><td align="center">Text Size</td><td>Set the size of the text in px value - 12px</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><tr><td align="center">Font Family</td><td>Type the name of the font family. The reference to the list of font families can be found here: <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family">MDN web docs</a></td></tr><tr><td align="center">Font Style</td><td>There are 3 types of styles that can be applied:<br>"normal" - The text is shown normally, no style applied.<br>"italic" - The text is cursive.<br>"oblique" - A sloped version of the normal text.</td></tr><tr><td align="center">Border Color</td><td>Set the colour to the border lines. The border lines will be shown only if that is enabled.</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 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">Accent</td><td><p>An <strong>accent</strong> is a typically bright colour that contrasts with the more utilitarian background and foreground colours within a colour scheme. These are present in the visual style of many platforms (though not all).</p><p>On the web, an accent is sometimes used in input elements for the active portion of the control, for instance, the background of a checked checkbox. <a href="https://developer.mozilla.org/en-US/docs/Glossary/Accent">MSDN web docs</a></p></td></tr><tr><td align="center">Validation Message</td><td>Set the colour of the validation text message. Recommended to set in contrast with the background, usually Red.</td></tr></tbody></table>

#### Custom CSS

Users can write a specific style using CSS syntax here and the style text will be applied to the widget when the program is loaded.

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