From 6c39c5920463bd9c654a91c45a8cf32e881b36bf Mon Sep 17 00:00:00 2001 From: Robert Drobota Date: Wed, 11 Jun 2025 18:52:52 +0300 Subject: [PATCH] Update documentation #243 - update the docs regarding 83e9387 (including the actions section) https://github.com/laravel-enso/tables/issues/243 --- docs/backend/tables.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/backend/tables.md b/docs/backend/tables.md index b060526..5226c98 100644 --- a/docs/backend/tables.md +++ b/docs/backend/tables.md @@ -614,6 +614,7 @@ configuration. It can be overridden within each 'local' table template. "confirmation": false, "message": "Are you sure?", "method": "GET/PUT/PATCH/POST/DELETE", + "selection": false, "params": { "first": "foo", "second": "bar" @@ -709,6 +710,7 @@ Depending on the chosen options, other parameters could be required: when you want to customize the modal's message - `method`: optional, string, should be given if you have `action` set as `ajax`, available options are: `"GET"` / `"PUT`" / `"PATCH`" / `"POST`" / `"DELETE`" +- `selection`: works only on `selectable` tables - and it will send a payload with selected rows to the back-end. Buttons that have this set to `true` will only be rendered when a selection is made. - `params`: optional, object, used if action = `router`, object is added to route params object #### Columns