d.bernaert Posted January 11, 2020 Share Posted January 11, 2020 Hello, I'm using Sweetalert for blocking modals which works fine. I would like to use it for non blocking modals also, so I need to to trap the OnConfirm. Would it be possible to have an inline procedure to handle the onconfirm? The reason I'm asking this is because I don't want to put a SweetAlert component on for every form where I have non-blocking modals but need the trap the onConfirm. MainForm.SweetAlert.Show('Book invoice?'), procedure(Button: TConfirmButton) begin end; Is that possible? Thx, Dominique Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 11, 2020 Share Posted January 11, 2020 8 hours ago, d.bernaert said: The reason I'm asking this is because I don't want to put a SweetAlert component on for every form where I have non-blocking modals but need the trap the onConfirm. Hello Dominique, Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 11, 2020 Administrators Share Posted January 11, 2020 SweetAlert is a separate component. The only way to catch callbacks is using the provided events: (OnConfirm and etc.) To implement your requested feature we need to integrate Sweet alert in uniGUI Core. Quote Link to comment Share on other sites More sharing options...
d.bernaert Posted January 12, 2020 Author Share Posted January 12, 2020 Okay, thx for the feedback Farshad. Grtz. Dominique Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.