Replies: 6 comments 7 replies
-
Very nice idea)) Would you mind implementing other prompt types like simple input and so on? |
Beta Was this translation helpful? Give feedback.
-
Such a component would be really useful! Anyway, I'm a little confused here: what do you mean with a "FUI plugin (out of FUI's base)"? Is it something concerning the development only? When completed, how will it be made available to end users? |
Beta Was this translation helpful? Give feedback.
-
Great job @prudho! Just thinking: 🤔 If we would add a |
Beta Was this translation helpful? Give feedback.
-
Thank you @prudho. I love the way you implemented with Promise. This way I can easily implement the additional processes within the promise chain instead of passing from the callback options when initializing the module. It would also be nice, if it would have option to modify the template of the alert which allows to style the content of alert. Sometimes, I would need to display the alert box with specific background color, and need to display HTML content rather than a text. |
Beta Was this translation helpful? Give feedback.
-
Okay, repo here guys. Feel free to give it a try ! |
Beta Was this translation helpful? Give feedback.
-
In case you havent noticed, the modal component now supports js config templates by #1869 |
Beta Was this translation helpful? Give feedback.
-
For my work needs, I use intensively alerts to prompt users, mostly for confirmations or to warn user something that he needs to know. To do so, I use the SweetAlert2 library. But it's still an external module, and doesn't has the look and feel of Fomantic.
So I started working on a (simple and bugged yet) alert plugin of Fomantic, and I wanted to know your feelings about this.
Plugin use the fomantic's modal system. It works by adding a modal to the page and display it till the user trigger an action (close, confirm or deny), and then return a result (as a Promise).
For now here's the implemented parameters:
Basic implementation:
In case you want to mess with it: JSFiddle.
Now guys, I want to know what do you think about it. Is this something that we can implement as a FUI plugin (I mean out of the FUI's base) ? What should be implemented in it ?
Related issue: #1407
Beta Was this translation helpful? Give feedback.
All reactions