Whenever data is loaded into a Table, the columns are automatically generated. You can add, remove, or modify columns by accessing the table properties under the column section. You can also rearrange the columns by dragging and dropping them.
Use dynamic column
The Use dynamic column toggle allows users to dynamically set the columns of the Table using a JSON value.
For example, if you enter the below JSON, the table will display a column labeled "Name" where the data entries are editable strings, restricted in length between 5 and 20 characters, displayed in white text on a black background.
{
"name":"Name",
"columnType":"string",
"key":"first_name",
"cellBackgroundColor":"#000",
"textColor":"#fff",
"isEditable":true,
"regex":"",
"maxLength":20,
"minLength":5,
"customRule":""
}
Types of Columns
The table component supports the following column types:
String
This column type is used for columns with text values. Unlike the text column type, string type doesn't support multi-line text.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Product Name ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., product_name ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Number
Selecting the column type as number will load numerical data in the column cells.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Quantity ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., quantity ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Decimal places | Specifies the number of decimal places for numerical values. | Integer (e.g., {{2}} ). |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Text
The text column type can be used for multi-line text.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Product Description ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., product_description ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Datepicker
The datepicker type can be used to display dates.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | Date (e.g., 13/09/1990 ) |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., listing_date ) |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Property | Description | Configuration Options |
---|
Enable date | Enables the option to change the formatting of the date. | Use the toggle button or click on fx and enter a logical expression. |
Date format | Configures the display format for date values within the column. | Use the drop down with common formats (Default: DD/MM/YYYY ) or click on fx and enter a logical expression. |
Enable date | Enables the option to change the formatting of the time. | Use the toggle button or click on fx and enter a logical expression. |
Enable 24 hr time format | Enables the option to change the formatting of the time to 24 hours. | Use the toggle button or click on fx and enter a logical expression. |
Enable 24 hr time format | Enables the option to change the formatting of the time to 24 hours. | Use the toggle button or click on fx and enter a logical expression. |
Time zone | Allows the selection of timezone. | Use the drop down to select the time zone. |
Property | Description | Configuration Options |
---|
Parse in unix timestamp | Enables parsing and display of date, time, and time zone data. | Use the toggle button or click on fx and enter a logical expression. |
Unix timestamp | Select between s or ms as the format. | Use the drop down to select the desired unix timestamp format. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Select
The select column can be used to display or select a single item from a list.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Category ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., category ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Options
Options can be used to provide values for the select column as an array. You can click on the Add new option button and enter Option label
and Option value
to create a new option. You can switch on the toggle for Make this option as default
to mark an option as the default value. You can also enable Dynamic option
and enter an array of values as shown in the example below:
{{[{ label: "Mobile Phones", value: "mobile-phones" },
{ label: "Smartphones", value: "smartphones" },
{ label: "Compact Cameras", value: "compact-cameras" },
{ label: "DSLR Cameras", value: "dslr-cameras" },
{ label: "Smart Watches", value: "smart-watches" },
]}}
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
MultiSelect
The MultiSelect column can be used to display or select multiple items from a list.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Locations ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., locations ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Options
Options can be used to provide values for the select column as an array. You can click on the Add new option button and enter Option label
and Option value
to set the option values. You can switch on the toggle for Make this option as default
to mark an option as the default value. You can also enable Dynamic option
and enter an array of values as shown in the example below:
{{[{ label: "Technology", value: "technology" },
{ label: "Apparrel", value: "apparrel" },
{ label: "Jewelry", value: "jewelry" },
{ label: "Furniture", value: "furniture" },
]}}
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Boolean
The boolean column type can be used to display boolean values. If the value is true, a green tick will be displayed and for false values a red cross will be displayed.
Properties
Property | Description | Expected Value |
---|
Column name | Specify the name to be displayed on the table column header. | String (e.g., Validity ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., is_valid ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Image
The image column type can be used to display images.
Properties
Property | Description | Expected Value |
---|
Column name | Specify the name to be displayed on the table column header. | String (e.g., Product Image ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., product_image ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Link
The link column type can be used to create a link to .
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Product Description ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., id ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Default (Deprecated)
This default column is used to display text.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Product Description ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., product_description ). |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . | Use JavaScript for dynamic value generation, e.g., {{cellValue > 4.5 ? 5 : 4}} . |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right , which can be specified using the switch. |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Dropdown (Deprecated)
The Dropdown column type is used to display a dropdown in the column cells using the column data.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Category ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., category_id ). |
Values | Provide the values for the dropdown as an array. | Array (e.g., [1, 2, 3] ). |
Labels | Provide the labels for the values in the dropdown as an array. | Array (e.g., ["Option 1", "Option 2", "Option 3"] ). |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right . |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Multiselect (Deprecated)
The multiselect column type is used to show multiple selections or display a dropdown in the column cells using the column data.
Properties
Property | Description | Expected Value |
---|
Column Name | Specify the name to be displayed on the table column header. | String (e.g., Tags ). |
Key | Specify the key name associated with the loaded data in the table. Uses Column name if no key is provided. | String (e.g., tag_ids ). |
Values | Provide the values for the dropdown as an array. | Array (e.g., [1, 2, 3] ). |
Labels | Provide the labels for the values in the dropdown as an array. | Array (e.g., ["Tag 1", "Tag 2", "Tag 3"] ). |
Make Editable | This option is disabled by default. Enabling it allows the column to be edited by app users. | Enable/disable the toggle button or dynamically configure the setting by clicking on fx and entering a logical expression. |
Visibility | This option is enabled by default. Disabling it hides the column from the table. | Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression. |
Styles
Property | Description | Configuration Options |
---|
Text Alignment | Aligns the text within the column. | Set alignment to left , center , or right . |
Text Color | Modifies the color of the text in the column. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Cell Background Color | Adjusts the background color of the cell. | Select the color or click on fx and input code that programmatically returns a Hex color code. |
Toggle Switch (Deprecated)
The Toggle Switch column type is used to display a toggle switch in the column cells, providing a clear visual indicator for boolean values.
Properties