The Table block effectively merges both the Data Provider and the Table component into one. It also integrates Searching and filtering data. This helps you simplify the logic of the page, and not have to worry about configuring two different components.
Furthermore, it allows you to add CRUD (Create, Read, Update and Delete) functionality to your table data; all in one component! It achieves this through the use of 'Create' and 'Edit Detail' Side panels.
Many of the settings will be shared with the Table component. The block specific settings are described on this page.
If your users simply need a data interface without actions, then you may prefer the Grid block.
Select the fields you want users to be able to search on. For a Text field the search will be a starts with. Other fields will search for an exact match.
As noted under the setting, a maximum of five search fields can be used at any given time.
In addition, the added Data provider will include the necessary filters with the form field bindings.
This setting allows you to determine what happens when a table row is clicked. By default Run actions will be checked, however with no actions set nothing will happen.
Define actions to get access to all of the available Actions.
You can add an action button to the top right of your table. To do so, check
Show button above table.
Once checked, you will be able to enter some text for the button, and similar to on row click, you can choose between running some actions or opening a side panel.
In this case however, the side panel will have a nested form block in Create mode, i.e. the fields will initially be blank and save a new row on submit, rather than update an existing row.
When creating an autogenerated screen, the table block is the only component that is added, with both side panel options selected.
Ejecting an autogenerated screen table block will result in a component tree like so:
Ejecting in this case is useful if you wanted to view and edit the side panel forms within the builder.
Updated 5 months ago