Skip to content

[Modules] Add user prompt #1407

@baterflyrity

Description

@baterflyrity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/discussionAnything which is up for discussiontype/featAny feature requests or improvements

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions