Skip to content

shiny.express.ui.modal() should include an example with a modal with inputs/outputs #2108

@gadenbuie

Description

@gadenbuie

https://shiny.posit.co/py/api/express/express.ui.modal.html

from shiny import reactive
from shiny.express import input, ui

ui.input_action_button("show", "Show modal dialog")


@reactive.effect
@reactive.event(input.show)
def _():
    m = ui.modal(
        "This is a somewhat important message.",
        title="Somewhat important message",
        easy_close=True,
        footer=None,
    )
    ui.modal_show(m)

The current example includes very basic UI. How would someone include inputs or outputs in the modal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions