[Modules] Add user prompt
See original GitHub issueFeature Request
Since Fomantic UI presents not only UI but some interactive modules it would be great to add a user prompt module.
The module should ask user for some decision like “File 1.txt already exists. Would you like to overwrite this file?” And also can be invoked from js with text, label and buttons (actions) with callbacks.
Example
From one hand poor prompt is already can be constructed via toast actions but it displays only toast but prompt (no dimmer, no visual highlights). From another hand prompt can be displayed via modal but with no dynamic content, actions and callbacks. So I suggest to merge modal UI with toast actions.
Example
Run confirm('Implement this?')
in browser console to see default implementation.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Interactive input: prompts - Ansible Documentation
Interactive input: prompts . If you want your playbook to prompt the user for certain input, add a 'vars_prompt' section. Prompting the user...
Read more >Build Templates with Prompt Modules, Instructions Sections ...
Prompt modules allow template creators to add prompts to templates. Prompts can be used to guide template users on what to include on...
Read more >Module for prompting user for field input in conjunction with ...
One solution would be to use · Create a form (some node edit or webform) to accept the inputs of the user. ·...
Read more >How to automate screen prompt questions for Install-Module
You must first install WMF 5.1 including all prerequisites. Once this is installed set PowerShell to "RemoteSigned" from an elevated prompt.
Read more >Create a prompt for user input - Building Your First CLI App in ...
- [Instructor] Once you have imported the desired modules, you can use module.exports to import a code from the modules into your application....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my mind, what you have in your example is easier (and quicker) than adding a whole new module/feature that will bloat the underlining Fomantic JS to do essentially the same thing but with a different name
If something, on the other hand, can be made easier where logic is needed to do various calculations, take into account other various things to stitch different aspects together, then that would be cool (like my Sidebar idea https://github.com/fomantic/Fomantic-UI/issues/1243)
Perhaps some kind of widget/extension factory/thingamajig could be useful to define/repurpose what you’re looking for 🤔
@lubber-de great job, i like it!