Hello, i'm not sure about how I could implement this. I have a list of Items, with a button to update individual items. But before updating anything, I want to display a confirmation pop-up "Are you sure you want to change item xxxxxxx".
I already have the list of items with a repeater on the "li" tag, and I plan to build a Component with relevant input variables, (or reuse the one provided by Toddle in the "sample ui" package.
- Shall I add the component anywhere in the page, with default Show to False? Or shall I add it under the repeating 'li'?
- Am i right to assume it's a 2/3 steps process involving 2 or 3 events?
1- onclick: I set the different variables the component needs (item name, item id, text, index, etc), and I set it to Show=True
2-when "confirmed" button is clicked, a new workflow can leverage these different variables to update the good item (for instance "item id")
3-when "canceled" button is clicked, a new workflow can revert the fields of the item or do any other cleaning action
Is it more or less the way to go, or am I complexifying things?
Thanks