Jump to content

Sweetalert callback


d.bernaert

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...