Tables (beta)
Last Updated: 25.10.2019
Overview (Beta version)
With Hala, you can include the table in the response. It can be useful when you are making an API request to external application, and then you want to represent the API response in the table view for the user. Also, you can use tables with mockup data, if you need to represent the information with columns and lines.
For example:
Adding the tables in Expert mode
You can use the expert mode to add the tables. The expert mode becomes available by pressing the button next to the word "Output."
Here is the JSON format for the tables that generated based on the API response:
Example for the table with mockup data:
The views of the table in the chat based on mockup data above:
The following table describes the parameters that can be used to build the table:
Parameter | Type | Description |
| string | String value, specifying the format. |
| string | View of the tables. |
| string | Optional. The name of your table that is displaying for the user in output. |
| array | Optional. Array with Objects. Each object represents a filter. The key of the Object denotes the field that should be filtered, and the Array of Strings represents the criteria. |
| array | Array with all the data records to be displayed in the Table. It can be described as |
| array | Optional. Array with String values representing the keys that the table should use to populate the columns. If it is empty, the SmartTable will use the first five fields in the "sourceData" object. |
| boolean | A boolean value indicating if the keys in the "sourceData" objects should be replaced with longer and more explicit ones from the database (API response), if set |
Last updated