Replies: 2 comments 4 replies
-
Hello ! The easiest "native" way to implement delete confirmation is to use the alert component on a separate deletion page. See the todo application example and If you are ready to create your own component, then you can include a script in it that will dynamically update your table after the fact to insert a modal button in each row. The whole goal of SQLPage is to free you from thinking about these things, to implement your core functionality faster, though. I would just go with a traditional link that loads a new page with a confirmation message in an alert component. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I'm already testing the version with the 'alert' component, it's fine, I'm just trying to find optimization solutions. My concern regarding this option is that if I have several hundred records displayed in the table, and to delete one I have to redirect back to the page, make a new 'select' and generate the table again, I would load the server too much. If there were more users who would simultaneously perform operations like this, the load would be even higher. All these are just ideas, questions I ask myself, I don't face them yet in production (at the moment there is no 'production' either ). I'm just trying to see how things work and find the best options |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a table with a list of records, I would like to put a delete button on each row, and the button to call a modal like the one in Tabler. How could this be achieved? I made a component for the modal, another one for the button (I couldn't use the existing button because it seems that it must have the property data-bs-toggle="modal" and data-bs-target="idModal"), but I can't display the button on each record in the table.
Beta Was this translation helpful? Give feedback.
All reactions