* add custom resolvers info and editable row selection info (#9057) * fix system requirements icon * add auth info for webhooks and fix casing * add regex custom validation info (#9068) * [docs]: Marketplace 1.7 updates (#9085) * [docs] Amazon redshift plugin * make minor improvements * add and update docs for marketplace 1.7 * update order of plugins in overview to match sidebar * create new version --------- Co-authored-by: Shubhendra <withshubh@gmail.com> * add the latest version in the versions.json file (#9094) * [docs]: Update PDF component (#9088) * update PDF component * merged with develop and added changes to the new version * update docs favicon: (#9118) * [docs] SSO revamp (#9031) * add method to set default language * update image settings through custom css and update screenshots for getting started and tooljet concepts (#9158) * fix read documentation button * fix formatting for setup icons (#9172) * fix sidebar link for aws lambda * Update static media (#9175) * updated the screenshots * reduced the gif size * reverted the package.json file * edited the zoomed in images and replaced some gifs with screenshots * removed one gif * update static media * update file names * update toolbar * fix file names * fix: dynamodb img path * update media for org management dashboard * fix: casing and formatting * update workspace constant media * update media in workspace settings and github * update github sso * minor change to github sso docs * minor fix * update google sso * change includeCurrentVersion flag to false --------- Co-authored-by: Asjad Ahmed Khan <iitasjad2001@gmail.com> Co-authored-by: Asjad Ahmed Khan <60435499+2001asjad@users.noreply.github.com> Co-authored-by: Karan Rathod <karan.altcampus@gmail.com> * Feature: Engagespot plugin (#9012) * feat(plugins): added engagespot plugin * feat(docs): added engagespot plugin docs * chore(engagespot-plugin): revised copywritings * Feature: Databricks data source (#9174) * plugin-created * Databricks integration * icon, error handling * removed unrelated changes from marketplace and frontend package-lock.json removed runAsync and maxRows timeouts pending * timeout implementation * socket timeout and error handling * resolve comments * resolve comments2 * solved render issue test connection improvements * solved undefined error * fix TJDB not null value fail for is operation (#9055) * fix TJDB not null value fail for is operation * handling not null and null case insenstive values * Support for marketplace plugin deploy on render preview app (#9221) * Fix for marketplace error on render preview app * add marketplace build command * Adding new workflow for building marketplace plugin * removed render app creation * [:docs] Add documentation for Databricks plugin (#9224) * add docs for databricks * update databricks docs * update docs * remove ref to clusters * bump to v2.34.0 * Fixed data source cypress failure (#9227) * updated spec with required text * updated mongodb and import spec * updated import spec --------- Co-authored-by: Karan Rathod <karan.altcampus@gmail.com> Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com> Co-authored-by: Midhun G S <gsmithun4@gmail.com> Co-authored-by: Shubhendra <withshubh@gmail.com> Co-authored-by: Aman Regu <amanregu@gmail.com> Co-authored-by: Asjad Ahmed Khan <iitasjad2001@gmail.com> Co-authored-by: Asjad Ahmed Khan <60435499+2001asjad@users.noreply.github.com> Co-authored-by: Jobin Jose <129726530+jobin-logidots@users.noreply.github.com> Co-authored-by: Syed Mohammad Akhtar Rizvi <85864291+ShazanRizvi@users.noreply.github.com> Co-authored-by: blank0537 <111295371+blank0537@users.noreply.github.com> Co-authored-by: Mekhla Asopa <59684099+Mekhla-Asopa@users.noreply.github.com>
8.5 KiB
| id | title |
|---|---|
| text | Text |
Text
The Text component can be used to create headers, sub-headers, add labels next to various input fields and more. In this document, we'll go through all the configuration options for the Text component.
Data
| Data Type | Description |
|---|---|
| Plain text | Simple text without any formatting. Ideal for straightforward messages where no emphasis or special layout is needed. |
| Markdown | Allows for easy formatting of text with elements like headers, bold, italics, links, and lists, making it suitable for writing content that requires basic styling. |
| HTML | Used to create formatted text and various elements on web pages. |
Events
| <div style={{ width:"100px"}}> Event | <div style={{ width:"100%"}}> Description |
|---|---|
| On click | Triggers whenever the user clicks on the component. |
| On hover | Triggers whenever the user hovers over the component. |
:::info Check Action Reference docs to get detailed information about all the Actions. :::
Component Specific Actions (CSA)
Following actions of the Text component can be controlled using Component-Specific Actions(CSA):
| <div style={{ width:"100px"}}> Action | <div style={{ width:"135px"}}> Description | <div style={{width: "200px"}}> How To Access |
|---|---|---|
| setText() | Sets the value of the input field. | Employ a RunJS query (for e.g., await components.text1.setText('this is input text')) or trigger it using an event. |
| clear() | Clears the entered text in the input field. | Employ a RunJS query (for e.g., await components.text1.clear()) or trigger it using an event. |
| setVisibility() | Sets the visibility of the component. | Employ a RunJS query (for e.g., await components.text1.setVisibility(false)) or trigger it using an event. |
| setLoading() | Sets the loading state of the component. | Employ a RunJS query (for e.g., await components.text1.setLoading(true)) or trigger it using an event. |
| setDisable() | Disables the component. | Employ a RunJS query (for e.g., await components.text1.setDisable(true)) or trigger it using an event. |
:::info Check the component specific actions available for this component here. :::
Exposed Variables
| <div style={{ width:"100px"}}> Variable | <div style={{ width:"200px"}}> Description | <div style={{width: "200px"}}> How To Access |
|: ---------- | :---------- | :------------ |
| text | Holds the value of the component's label. | Accessible dynamically with JS (for e.g., {{components.text1.text}}). |
| isLoading | Indicates if the component is loading. | Accessible dynamically with JS (for e.g., {{components.text1.isLoading}}). |
| isVisible | Indicates if the component is visible. | Accessible dynamically with JS (for e.g., {{components.text1.isVisible}}). |
| isDisabled | Indicates if the component is disabled. | Accessible dynamically with JS (for e.g., {{components.text1.isDisabled}}). |
Additional Actions
| <div style={{ width:"100px"}}> Action | <div style={{ width:"150px"}}> Description | <div style={{ width:"250px"}}> Configuration Options |
|---|---|---|
| Loading state | Enables a loading spinner, often used with isLoading to indicate progress. Toggle or set dynamically. |
Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
| Visibility | Controls component visibility. Toggle or set dynamically. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
| Disable | Enables or disables the component. Toggle or set dynamically. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
| Tooltip | Provides additional information on hover. Set a string value for display. | String (e.g., Enter your name here. ). |
Devices
Show on desktop
Makes the component visible in desktop view. You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobile
Makes the component visible in mobile view. You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Styles
Text
| Text Property | Description | Configuration Options |
|---|---|---|
| Size | Dimensions of the characters in a font. | Enter any number between 1-100 or dynamically configure it using fx. |
| Weight | Determines how bold or light your text will appear. | Select from light, regular, semi-bold or bold or dynamically configure it using fx. |
| Style | Allows you to apply styles like italic or normal, altering the overall look of the text content. | Select from normal, italic or oblique or dynamically configure it using fx. |
| Color | Sets the color of the text. | Choose a color using the color picker or dynamically configure it using fx. |
| Scroll | Creates a scroll bar if the text exceeds the component's dimensions. | Choose between enable or disable or dynamically configure it using fx. |
| Line Height | Determines the vertical space between lines of text within an element. | Enter a number as the value (example: 1.5) or dynamically configure it using fx. |
| Text Indent | Commonly used to create an indentation effect. | Enter a number as the value (example: 10) or dynamically configure it using fx. |
| Alignment | Sets the alignment of the text. | Select the available options to align the text vertically or horizontally or dynamically configure it using fx. |
| Text Decoration | Adds an underline, overline, line-through, or a combination of lines to selected text. | Select one of the available options - none(default), underline, overline, and strike-through or dynamically configure it using fx. |
| Transformation | Dictates the capitalization of text. | Select one of the available options - none (default), uppercase, lowercase, capitalize or dynamically configure it using fx. |
| Letter spacing | Determines the space between each letter. | Enter a number as the value (example: 15) or dynamically configure it using fx. |
| Word spacing | Determines the space between each word. | Enter a number as the value (example: 15) or dynamically configure it using fx. |
| Font variant | Adjusts the text appearance by applying font variations. | Select one of the available options - normal, inherit, small-caps, initial or dynamically configure it using fx. |
Container
| <div style={{ width:"100px"}}> Field Property | <div style={{ width:"150px"}}> Description | <div style={{ width:"250px"}}> Configuration Options |
|---|---|---|
| Background | Sets the background color of the component. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
| Border | Sets the border color of the component. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
| Border radius | Modifies the border radius of the component. | Enter a number or click on fx and enter a code that programmatically returns a numeric value. |
| Box shadow | Sets the box shadow properties of the component. | Select the box shadow color and adjust the related properties or programmatically set it using fx. |
| Padding | Adds padding to the component | Select None for no padding and Default for standard padding. |