seems for now in flarum front codes we can only use the default confirm modal from browser, right?
nice modal
- Edited
crazysvn what are you trying to do? Are you writing an extension?
Flarum doesn't have a ready to use, thread-blocking equivalent to javascript confirm()
. But in your extension you can easily create your own custom modal to use as a confirmation modal, then proceed from a callback or write the code to be asynchronous.
Or are you referring to an existing Flarum feature that uses the browser controls instead of something prettier?
clarkwinkelmann yes I'm writing an extension, the default confirm dialog window is not nice enough, I think. I'll try to create custom modal.