question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Modules] Add user prompt

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jamessampfordcommented, Apr 8, 2020

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 🤔

1reaction
baterflyritycommented, Feb 7, 2021

@lubber-de great job, i like it!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found