Table
Tables can be used for both displaying and editing data. You can use the table component to display data from a database or API. You can also use the table component to edit data and save it back to the database or API.
Table UI
Filter Data
The table data can be filtered using the Filter data option on its top-left. You have the option to choose from various filters, such as:
- contains
- does not contain
- matches
- does not match
- equals
- does not equal
- is empty
- is not empty
- greater than
- greater than or equal to
- less than
- less than or equal to
You also have the option to hide the filter button in the table properties.
Search
At the top-right corner of the table component, there is a search box that allows users to input keywords and search for rows within the table data. You can also show/hide the search box from the table from the table properties.
You can use the Tab
key to navigate through cells on the table.
Pagination
The table component supports both client-side pagination and server-side pagination. The <<
and >>
button skips to the first and last page respectively. The <
and >
button takes the user to the previous and next page respectively. You can also hide the pagination buttons in the table properties.
Add New Rows
Upon clicking this button, a popup modal will show, providing users with the ability to insert new rows. Initially, the modal will contain a single row, with columns mirroring those found in the table. If users input data into this row, it will be stored within the newRows
variable associated with the table. Clicking on the Discard button will clear the data within this variable. However, if the users close the popup without any action (neither saving nor discarding), the data will persist, accompanied by a green indicator on the Add new row button. The table incorporates an Add new rows event handler, which can be employed to execute queries that store the data into the data source upon clicking the Save button.
At present, it is not possible to include columns of type Image when adding a new row to the table.
Download
The table data can be downloaded in various file formats, including:
- CSV
- Excel
The name of the downloaded file will be in the following format:
Tablename_DD-MM-YYYY_HH-mm.filetype
Example: Customers_25-03-2022_16-10.csv
You have the option to hide the download button in the table properties.
You can utilize Component Specific Actions to retrieve the table data in the mentioned formats from the event handlers across the application.
Hide Columns
You can choose which columns to show or hide in the table using this option. You also have the option to hide the column selector button in the table properties.
Sorting
You can sort the table data in ascending or descending order by clicking on the column header. You can also disable the sorting from the table properties.
Table Data
To populate the table with the data, it is required to provide the data in the form of an array of objects. You can utilize data from queries, using {{queries.restapi1.data}}
, to populate table.
Example:
{{[{ id: 1, name: 'Sarah', email: '[email protected]'}]}}
The table also supports the loading of one level of nested data. Here is an example of the data structure:
[
{
"id":1,
"student":{
"name":"Anakin Skywalker",
"saber":"blue"
},
"teacher":{
"name":"Obi wan Kenobi",
"saber":"blue"
}
},
{
"id":2,
"student":{
"name":"Kevin",
"saber":"blue"
},
"teacher":{
"name":"Joe",
"saber":"blue"
}
},
{
"id":3,
"student":{
"name":"Alex",
"saber":"blue"
},
"teacher":{
"name":"Noah",
"saber":"blue"
}
}
]
The table component will automatically generate all the required columns when the data is provided in the form of an array of objects.
Columns
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
Enabling the Use dynamic column toggle will allow users to set the Column data using which the user can link the column data dynamically from a query.
The column data field expects a JSON value:
{
"name":"Name",
"columnType":"string",
"key":"first_name",
"cellBackgroundColor":"#000",
"textColor":"#fff",
"isEditable":true,
"regex":"",
"maxLength":10,
"minLength":5,
"customRule":""
}
Types of Columns
The table component supports the following column types:
- String | Default
- Number
- Badge
- Multiple Badges
- Tags
- Dropdown
- Radio
- Multiselect
- Toggle switch
- Date Picker
- Image
- Link
String | Default
This column type is automatically selected by default when a column is added or when data is populated in the table.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Overflow | Manage the handling of content that exceeds the cell dimensions. Wrap wraps the content onto the next line within the cell, Scroll enables scrolling for content that exceeds the cell, and Hide conceals content that goes beyond the cell boundary. |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Text color | Modify the color of the text in the column. You can use a hex color code or color name. The value can be dynamically assigned using JS. Refer to the how-to guide. |
Cell background color | Adjust the background color of the cell in the column. You can utilize a hex color code or color name. The value can be dynamically assigned using JS. |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Number
Selecting the column type as Number will only load numerical data in the column cells.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Horizontal alignment | Positions content left, center, or right within table column cells for improved readability and visual presentation. |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Badge
The Badge column type is utilized to exhibit labels on the columns using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Values | Provide the values for the badge as an array |
Labels | Provide the labels for the values in the badge as an array |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Multiple Badges
Similar to the Badge column type, the Multiple Badges type is used to display multiple badges within a column cell.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Values | Provide the values for the multiple badges as an array |
Labels | Provide the labels for the values in the multiple badges as an array |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Tags
The Tags column type is utilized to display tags within the column cells using the column data. The provided key should have values in an array format.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Dropdown
The Dropdown column type is used to display a dropdown in the column cells using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Values | Provide the values for the dropdown as an array |
Labels | Provide the labels for the values in the dropdown as an array |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Radio
The Radio column type is used to show radio buttons in the column cells using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Values | Provide the values for the radio as an array |
Labels | Provide the labels for the values in the radio as an array |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Multiselect
The Multiselect column type is used to show a multiselect dropdown in the column cells using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Values | Provide the values for the multiselect as an array |
Labels | Provide the labels for the values in the multiselect as an array |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Toggle Switch
The Toggle Switch column type is used to display a toggle switch in the column cells using the column data. The provided key should be a boolean value, either true or false.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. If no key is provided, the Column name is used as the key for that column. |
Transformation | Allows you to transform the data of a cell value. The default value will be {{cellValue}} . You can use JavaScript code to dynamically generate a value. For instance, to round off a value, you can use {{cellValue > 4.5 ? 5 : 4}} . |
Active color | Set the color of the toggle switch when it is active using this property. |
+ Add Event Handler | Add an event handler to perform actions whenever the toggle switch is turned on or off. |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Date Picker
The Date Picker column type is used to display a date picker in the column cells using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. The provided key should hold a date value. |
Horizontal alignment | Positions content left, center, or right within table column cells for improved readability and visual presentation. |
Date Display Format | Determines how the date should be displayed in the table |
Date Parse Format | Specifies the format in which the date is stored in the database. |
Parse in timezone | The timezone of the time stored in the database. Only required if the Show time option is enabled. |
Display in timezone | The timezone in which the date should be displayed. Only required if the Show time option is enabled. |
Show time | Displays the time along with the date. |
Make editable | This option is disabled by default. Enabling it allows the column to be edited by app users. Its value can also be dynamically set to {{true}} or {{false}} to toggle it on or off. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Image
The Image column type is used to display images in the column cells using the column data.
Column Property | Description |
---|---|
Column name | Specify the name to be displayed on the table column header |
Key | Specify the key name associated with the loaded data in the table. The provided key should hold a URL for the image to be loaded in the column cells. |
Horizontal alignment | Positions content left, center, or right within table column cells for improved readability and visual presentation. |
Border radius | Set a border radius for the image loaded in the column cell. The field accepts a numerical value from 0 to 100 . |
Width | Set a width for the image loaded in the column cell. The field accepts a numerical value from 0 to 100 . |
Height | Set a height for the image loaded in the column cell. The field accepts a numerical value from 0 to 100 . |
Object fit | This option allows you to choose how the image should be fitted within its container. The available options are: Cover, Contain, and Fill. Cover maintains the aspect ratio of the image but may crop or clip parts of it to cover the container's width, Contain maintains the aspect ratio and resizes the image to fit within the given dimensions while displaying the entire image, and Fill stretches the image to cover 100% of the width. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
Link
The Link column type enables cells to become clickable links that can be loaded on either the same page or a new page.
Column Property | Description |
---|---|
Column name | Specifies the name displayed on the table column header. |
Key | Specify the key that holds the URL. By default. The provided key should hold either a string or a URL . |
Link Target | Specifies whether the link should be loaded on the same window or a new window. The values can also be set dynamically to _set for same window and _blank for new window. |
Column Visibility | This option is enabled by default. Disabling it hides the column from the table. Its value can also be dynamically set to {{true}} or {{false}} to show or hide the column. |
For more information on using cellValue and rowData, refer to the how-to guide.
Add Column
You can add a new column to the table by clicking on the + Add Column button. On clicking this button a new column will be added to the table and you can edit it's properties from the column section. Check Displaying Data section to learn more.
Delete Column
Hover on the column under the columns section and click on the three dots icon, a dropdown will appear with the option to delete the column. Click on the delete option to remove the column from the table.
Displaying Data
The data object should be an array of objects. Table columns can be added, removed, rearranged from the inspector. key
property is the accessor key used to get data from a single element of a table data object. For example:
If the table data is:
[
{
"review": {
"title": "An app review"
},
"user": {
"name": "sam",
"email": "[email protected]"
},
}
]
To display email column, the key for the column should be user.email
.
Saving Data
Enable editable
property of a column to make the cells editable. If a data type is not selected, string
is selected as the data type.
You can programatically enable/disable the make editable field in the columns property by clicking on the Fx button.
If the data in a cell is changed, changeSet
property of the table object will have the index of the row and the field that changed.
For example, if the name field of second row of example in the 'Displaying Data' section is changed, changeSet
will look like this:
{
2: {
"name": "new name"
}
}
Along with changeSet
, dataUpdates
property will also be changed when the value of a cell changes. dataUpdates
will have the whole data of the changed index from the table data. dataUpdates
will look like this for our example:
[{
"review": {
"title": "An app review"
},
"user": {
"name": "new name",
"email": "[email protected]"
},
}]
If the data of a cell is changed, "save changes" button will be shown at the bottom of the table. This button when clicked will trigger the Bulk update query
event. This event can be used to run a query to update the data on your data source.
Events
- Row hovered
- Row clicked
- Save changes
- Cancel changes
- Page changed
- Search
- Sort applied
- Cell value changed
- Filter changed
- Add new rows
Allow Selection
This option is active by default. Enabling this functionality allows users to choose a row in the table by utilizing checkboxes
placed next to each row. If this option is disabled, the ability to highlight selected rows and perform bulk selection will not be accessible.
If the option for allowing selection is enabled, a new option called Default selected row will become visible. However, if the option for allowing selection is disabled, the Default selected row option will not be displayed.
Highlight Selected Row
Activate this option to visually emphasize the last clicked row. Enabling this feature will alter the row selection appearance of the table from a checkbox
-based theme to a highlighting
-based theme.
Bulk Selection
To enable the selection of one or more rows from the current page of a table, you can activate the 'Bulk selection' setting in the inspector. The values of the selected rows will be exposed as 'selectedRows'.
Default Selected Row
By enabling this option, you can designate a default row to be pre-selected when the app loads. This means that whenever the app is opened for the first time, a specific row will already be highlighted in the table by default. Additionally, there is an accessible variable that stores the value for this setting. You can find a list of all accessible variables here.
To set a default selected row, you need to provide an object with a single key-value pair. For instance, you can use the id
key and dynamically obtain the value from a variable, let's say x
, to specify the default selected row in the table. We assume that the variable x
holds a valid numerical id.
Example:
{{{"id": variables.x}}} //assuming variables.x is already set
Please ensure that the value provided in the object corresponds to a valid id in the table to ensure proper functionality.
Select Row on Cell Edit
Enabling the Make editable
property for a column allows the app users to edit the column. While editing, the related row will be selected by default. To stop the row from getting selected by default, turn off Select row on cell edit
.
Component Specific Actions (CSA)
Following actions of the component can be controlled using the component specific actions(CSA):
Action | Description | How To Access |
---|---|---|
setPage() | Sets the page on the table. | Employ a RunJS query (for e.g., await components.table1.setPage(2) ) or trigger it using an event. |
selectRow() | Selects a row on the table | Employ a RunJS query (for e.g., await components.table1.selectRow('id','11') ) or trigger it using an event. |
deselectRow() | Deselects a row on the table. | Employ a RunJS query (for e.g., await components.table1.deselectRow() ) or trigger it using an event. |
selectAllRows() | Selects all rows on the table. | Employ a RunJS query (for e.g., await components.table1.selectAllRows() ) or trigger it using an event. |
deselectAllRows() | Deselects all rows on the table | Employ a RunJS query (for e.g., await components.table1.deselectAllRows() ) or trigger it using an event. |
discardChanges() | Discards the changes from the table when a cell is edited. | Employ a RunJS query (for e.g., await components.table1.discardChanges() ) or trigger it using an event. |
discardNewlyAddedRows() | Discards the newly added rows from the add new row popup on the table. | Employ a RunJS query (for e.g., await components.table1.discardNewlyAddedRows() ) or trigger it using an event. |
downloadTableData() | Retrieves the data from the table in the PDF, CSV, or Excel sheet. | Employ a RunJS query (for e.g., await components.table1.downloadTableData('pdf') ) or trigger it using an event. |
setFilters() | Applies filters to the table data. | Employ a RunJS query (for e.g., await components.table1.setFilters ([{column:'name',condition:'contains',value: 'Sarah'}]) ) or trigger it using an event. |
clearFilters() | Removes all applied filters from the table. | Employ a RunJS query (for e.g., await components.table1.clearFilters() ) or trigger it using an event. |
Exposed Variables
Variable | Description |
---|---|
currentData | Data that is currently being displayed by the table (including edits if any ) |
currentPageData | Data that is displayed on the current page if pagination is enabled (including edits if any) |
pageIndex | Index of the current page, starting from 1 |
changeSet | Object with row number as the key and object of edited fields and their values as the value |
dataUpdates | Just like changeSet but includes the data of the entire row |
selectedRow | Contains the data of the row that was most recently clicked. When an action button is clicked, selectedRow is also updated. Its initial value is set to the data of the first row when the app is loaded. |
selectedRowId | Stores the ID of the row that was last clicked. Similar to selectedRow , it gets updated when an action button is clicked. You can access its value using {{components.table1.selectedRowId}} . By default, it is set to 0 , representing the ID of the first row when the app is loaded. |
selectedCell | The data of the cell that was last clicked on the table. |
searchText | The value of the search field if server-side pagination is enabled. |
newRows | The newRows variable stores an array of objects, each containing data for a row that was added to the table using the "Add new row" button. When the user clicks either the "Save" or "Discard" button in the modal, this data is cleared. |
Validation
Under column properties, expand the detailed view of a column type to access a toggle button called make editable
. You can toggle it ON
to apply the validations. Validations will be different for different column types. For instance, the a column with string
type will have the following validations.
Method | Description |
---|---|
Regex | Use this field to enter a Regular Expression that will validate the content. |
Min length | Enter the number for a minimum length of characters allowed. |
Max length | Enter the number for the maximum length of characters allowed. |
Custom rule | If the condition is true, the validation passes, otherwise return a string that should be displayed as the error message. For example: {{components.table1.selectedRow.id==1&&"This row can't be deleted"}} |
Action Buttons
Action buttons will be displayed as the last column of the table. The styles of these buttons can be customized and on click
actions can be configured. when clicked, selectedRow
property of the table will have the table data of the row.
Property | Description |
---|---|
Button text | Set the text that you want to be displayed on the action button. |
Button position | Set the button position to the left or right |
Background color (Action Button) | Background color of the action button. |
Text color (Action Button) | Color of button-text of the action button. |
Disable Action Button | Toggle on to disable the action button. You can programmatically set its value by clicking on the Fx button next to it, if set to {{true}} , the action button will be disabled and becomes non-functional. By default, its value is set to {{false}} . |
Search Sort and Filter
Show Search
It can be used to show or hide Table Search box. Client-side search is enabled by default and server-side search can be enabled from the events section of the inspector. Whenever the search text is changed, the searchText
property of the table component is updated. If server-side search is enabled, on search
event is fired after the content of searchText
property is changed. searchText
can be used to run a specific query to search for the records in your data source.
If you don't wish to use the search feature altogether, you can disable it from the inspector.
Server-side Search
If server-side search is enabled, on search
event is fired after the content of searchText
property is changed. searchText
can be used to run a specific query to search for the records in your data source.
Enable Column Sorting
Disable this option to lock the sorting of columns when clicked on column header.
Server-side Sort
When Server-side sort is enabled, clicking on the column headers will not automatically sort the table, instead, the Sort applied
event will be fired and the applied sorting will be exposed as sortApplied
. You can use this data to run any query that feeds data to the table in a manner that reflects the sorting applied.
Enable Filtering
The filter button in the table header is visible by default. You can choose to hide it by disabling this option. You can dynamically set the value to {{true}}
or {{false}}
to show or hide the filter button by clicking on the Fx button.
Server-side Filter
When Server-side filter is enabled, applying filters will not automatically filter the table, instead, the Filter changed
event will be fired and the applied filters will be exposed as filters
. You can use this data to run any query that feeds data to the table in a manner that reflects the filters applied.
Pagination
Client-side Pagination
Client-side pagination is enabled by default. When the client-side pagination is enabled({{true}}
), another property Number of rows per page will be shown that can be used to set the number of records per page. By default, the value is set to 10 and if it is disabled({{false}}
) then it will show all the records in the single page.
Server-side Pagination
Server-side pagination can be used to run a query whenever the page is changed. Go to events section of the inspector and change the action for on page changed
event. Number of records per page needs to be handled in your query. If server-side pagination is enabled, pageIndex
property will be exposed on the table object, this property will have the current page index. pageIndex
can be used to query the next set of results when page is changed.
When Server-side pagination is enabled, you'll be able to set three other table properties:
- Enable previous page button: When server-side pagination is enabled, this button is enabled by default. Toggle this off to disable the previous page button from the table.
- Enable next page button: When server-side pagination is enabled, this button is enabled by default. Toggle this off to disable the next page button from the table.
- Total records server side: Set a numerical value to display particular number of records.
Check this how-to guide to learn more about server-side pagination.
Additional Actions
Show Add New Row Button
The Add new row button in the table header is visible by default. You can choose to hide it by disabling this option. You can dynamically set the value to {{true}}
or {{false}}
to show or hide the Add new row button by clicking on the Fx button.
Show Download Button
The download button in the table header is visible by default. You can choose to hide it by disabling this option. You can dynamically set the value to {{true}}
or {{false}}
to show or hide the download button by clicking on the Fx button.
Hide Column Selector Button
The column selector button on the table header is visible by default. You can choose to hide it by disabling this option. You can dynamically set the value to {{true}}
or {{false}}
to show or hide the column selector button by clicking on the Fx button.
Loading State (Boolean)
Loading state shows a loading skeleton for the table. This property can be used to show a loading status on the table while data is being loaded. isLoading
property of a query can be used to get the status of a query.
Show Update Buttons
It's enabled by default. Table footer will show two update buttons Save changes & Discard changes whenever a cell is edited. Toggle off
to hide update buttons.
Devices
Option | Description | Expected Value |
---|---|---|
Show on desktop | Toggle on or off to show or hide the component on desktop devices. | {{true}} or {{false}} |
Show on mobile | Toggle on or off to show or hide the component on mobile devices. | {{true}} or {{false}} |
Styles
Style | Description |
---|---|
Text color | Change the color of the text in table by providing hex color code or choosing one from the picker |
Action button radius | This field can be used to give a radius to all action buttons. The default value is 0 |
Table type | Select a type of table from the dropdown: Bordered, Regular, or Striped. |
Cell size | This decides the size of table cells. You can choose between a Condensed size for table cells or a Regular size |
Visibility | Toggle on or off to control the visibility of the widget. You can programmatically change its value by clicking on the Fx button next to it. If {{false}} the component will not visible after the app is deployed. By default, it's set to {{true}} . |
Disable | Toggle on to lock the widget. You can programmatically change its value by clicking on the Fx button next to it, if set to {{true}} , the component will be locked and becomes non-functional. By default, its value is set to {{false}} . |
Border radius | Use this property to modify the border radius of the button. |
Any property having Fx
button next to its field can be programmatically configured.