techatspree/jquery-toastmessage-plugin

add button

Opened this issue · 2 comments

@dbremer-tonn
I want to add a certain button in the pop-up box, then what should I do?

Trouble reply me see! thank you

Just type this in your console for example,

$().toastmessage('showWarningToast',"<button id='myButton'>do something</button>");

you will have after, a button in the pop-up box to do whatever you want :)

Can I use plugin functionality to replace JS "confirm" function (somehow add Ok, cancel buttons)? Plugin works for standart JS alert, so I want to replace "confirm" in the same style.