reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Get `action`, `cancel`, `on_dismiss` and `on_auto_close` working for rx.toast

Open masenf opened this issue 3 months ago β€’ 2 comments

Handle callbacks into reflex event handlers.

Respect defaults set in ToastProvider toast_options when firing a toast with it's own ToastProps set.

Create new reflex.utils.format.format_queue_events helper method that can be used to take arbitrary eventhandler/eventspec/lambda along with an args spec, and create a callback function for use with rx.call_script-based APIs.

masenf avatar May 02 '24 20:05 masenf

@Lendemor idk if you want to take this into your branch (it has a refresh from origin/main); or if you just want to take your PR into main and then i can rebase this one and bring it into main separately.

masenf avatar May 03 '24 03:05 masenf

@Lendemor idk if you want to take this into your branch (it has a refresh from origin/main); or if you just want to take your PR into main and then i can rebase this one and bring it into main separately.

I'm fine with both, let's just go with whatever is more convenient.

Lendemor avatar May 03 '24 12:05 Lendemor