Vega Table Operations
Overview
Vega Table operations are the actions the Vega Table component performs. These actions include filtering, adding rows, removing rows, navigating to different table pages, and so on. To control and trigger Vega Table operations, use the Operations Builder tool.
Vega Table Operations List
Below is a list of all supported Vega Table operations you can use to control your Vega Table component. For more information on general Vega Table operation settings, view the Shared Vega Table Operation Settings section.
Settings in the table below might let Creators Also known as Unqork Users, or Designer Users; is anyone who is inside the Unqork platform. select a data type option for a field's value. Unqork recommends using the default option when possible.
Operation Type |
Description |
Option(s) |
---|---|---|
TABLE_ADD_COLUMN |
Adds a column to the table. |
Definitions*: Add one or more component definitions to the new columns. Unqork recommends using a Data Workflow component to pass a component's JSON definition to this operation. |
Adds an empty row to the table at a specified index. |
Target Index*: Enter the row number or value to navigate to. The first row has an index of 0. Row Value*: Enter a JSON object containing the values for the new row's object keys. If no index is specified, a row adds to the bottom of the table. |
|
TABLE_CLEAR |
Removes all columns and rows from the table. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
TABLE_GO_TO_FIRST_PAGE |
Navigates to the first page of the table. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
TABLE_GO_TO_LAST_PAGE |
Navigates to the last page of the table. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
TABLE_GO_TO_NEXT_PAGE |
Navigates to the next page of the table. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
TABLE_GO_TO_PAGE |
Navigates to a specific page of the table. |
Page Number*: Enter the value to navigate to. The first page has an index of 0. |
TABLE_GO_TO_PREVIOUS_PAGE |
Navigates to the previous page of the table. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
TABLE_SET_PAGE_SIZE |
Sets the number of rows displayed on each paginated page. |
Page Size*: Enter a value corresponding to the number of rows to display per page. |
TABLE_REMOVE_COLUMN |
Removes a column from the table. |
|
TABLE_REMOVE_ROW |
Removes a specified row(s) from the table. |
The first row has an index of 0. |
TABLE_RENAME_COLUMN |
Rename a column's key and display value. |
Keys to Rename*: Enter a JSON object containing the column key and label you want to rename. For example: Copy
|
TABLE_SET_ACTION_TOOLBAR_VISIBILITY |
Displays or hides the action toolbar(s). |
|
TABLE_SET_COLUMN_FILTERS_VISIBILITY |
Displays or hides the column filter toolbar. |
Enter Column Filters*: Enter True to display the table's toolbar filter fields. Enter or select False to hide it. |
TABLE_SET_GLOBAL_FILTER_VISIBILITY |
Displays or hides the global filter toolbar. |
Enter Global Filter*: Enter True to display the table's toolbar global filtering feature. Enter or select False to hide it. |
TABLE_SET_GLOBAL_FILTER |
Filters all columns simultaneously. |
Filter*: Enter the key value to filter across all columns in the Vega Table component. |
TABLE_SET_ALL_ROWS_EXPANDED |
Expand or collapse all rows in the table. |
|
TABLE_SET_COLUMN_FILTER |
Filters one or more columns. |
Filters*: Contains one or multiple Column Filter fields to filter the column by. Click Add Item to add additional filters:
|
TABLE_SET_COLUMN_PINNING |
Pins a column of the table. |
Column Pinning State: These settings control which columns are pinned to the left or right of the table.
|
TABLE_SET_COLUMN_VISIBILITY |
Displays or hides a column of the table. |
|
Offers additional control over filtering columns by data type. |
Filters*:The Filters setting contains Column Filter Type options. To add additional filters, click the Add Item button.
Filter Types include:
Learn more about each filter type's settings in the Filters Types and Options section. |
|
TABLE_SET_GROUPING_CRITERIA |
Sets row grouping in the table. |
Group By*: Enter the column label value to group the table by. Group the table by multiple columns by clicking the Add Item button and entering multiple column labels. |
TABLE_SET_NAVIGATE_DOWN_ON_PRESS_ENTER |
When the table is in edit mode, change the navigation behavior to move down cells when the end-user presses the Enter key. |
Enabled*: Enter True to change the navigation method to move down a cell row when the end-user presses the Enter (Return) key on their keyboard. Set the value to False to return to the regular navigation method. |
TABLE_SET_ROW_DENSITY |
Set the amount of padding around cell content for the entire table. |
Row Density*: Enter a padding value. The number adds spacing around the cell in px. |
TABLE_SET_ROW_EXPANDED |
Expand or collapse a parent row group. |
|
TABLE_SET_ROW_PINNING |
Pins a row of the table. |
Row Pinning State: These settings control which rows are pinned to the top or the bottom of the table.
The first row has an index of 0. |
TABLE_SET_SELECTED_ROW |
Highlights the selected row of the table. |
Selected Rows*: Highlight a specific row of the table by using the following JSON: {[rowIndex: string]: Boolean}. |
TABLE_SORT_BY_COLUMN |
Sort a column in the Vega Table. |
Sorting State: Sort a column using its key/value pair. Sort multiple columns at once by clicking the Add Item button and entering a new column key/value pair.
|
TABLE_TOGGLE_GROUPING |
Enables or disables grouping. |
Target Key*: Enter the property ID of the Table component this operation will affect. |
Shared Vega Table Operation Settings
These settings are present in every Vega Table operation.
Setting |
Description |
---|---|
Summary |
Describe the purpose of the operation. This field does not display in Express View Express View is how your end-user views your application. Express View also lets you preview your applications to test your configuration and view the styling. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View.. |
Should Execute |
Select the execution method from the drop-down. Methods include:
By default, this setting is set to Boolean and |
Target Key* |
Enter the property ID of the Table component, or a dynamic value this operation will affect. |
Table Set Filters Types and Options
The TABLE_SET_FILTER_TYPES operation enables granular control over a Vega Table component's column filtering feature. Creators can specify the filter type to use for each column, and control its effects. For example, you could limit the filter options for a column containing a drop-down list, or limit the minimum and maximum range values of a column displaying the number data type.
Filter Types
The list below includes a description and available options for each filter type available to the TABLE_SET_FILTER_TYPES filter:
Filter Types | Description | Option Values |
---|---|---|
checkbox |
Filters column by Boolean values. Useful for filtering data from a Single Checkbox component. |
Include Blanks in Filter: Set to |
text |
Filter columns by a text string value. Useful for filtering data from a Text Field component. |
Include Blanks in Filter: Set to Allow Filter Blank: Set to For the text filter, this setting also lets End-users filter for blank values by entering (blanks) in the filter field. |
select |
Filters column by drop-down values where the end-user can select a single value. Useful for filtering data values from a Dropdown, Simple Select, or Search Select component. |
Use Faceted Values:
|
multi-select |
Filters column by drop-down values that allow end-users to select multiple values. Useful for filtering data fields from a Checkboxes, Simple Select, or Search Select component containing multiple values. |
Use Faceted Values:
|
range-slider |
Filters column by number values and presents as a slider to the end-user. Creators can set the minimum and maximum values end-users can filter by. Useful for filtering data from a Number component. |
|
date-range |
Filters column by date value and allows Creators to specify the date format that displays in the Vega Table's filter tool bar. Useful for filtering data from a Date Input component. |
Date Format: Specify how dates arrange and display to the end-user End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product.. For best results, match the date format to the Date component or date field used with this filter. Example date formats for the filter's UI The UI (user interface) is a device's end-user interaction and communication point. It can include display screens, keyboards, and mouse. It is also how a user interacts with your application.:
Include Blanks in Filter: Set to |
range |
Filters column by number values and present as a minimum and maximum field to the end-user. Useful for filtering data from a Number component. |
Include Blanks in Filter: Set to |
Resources