Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Oct 15, 2025

Related rstudio/bslib#1204

Adds input_submit_textarea(), a new input control that's akin to input_textarea(), but delays the sending of an input value until a corresponding button is pressed.

Here is a hello world example:

import time

from shiny.express import input, render, ui

ui.input_submit_textarea("text", placeholder="Enter some input...")


@render.text
def value():
    if "text" in input:
        # Simulate processing time
        time.sleep(2)
        return f"You entered: {input.text()}"
    else:
        return "Submit some input to see it here."

@cpsievert cpsievert requested a review from Copilot October 15, 2025 17:40
Copilot

This comment was marked as outdated.

@cpsievert cpsievert requested a review from Copilot October 15, 2025 18:23
Copilot

This comment was marked as resolved.

@cpsievert cpsievert requested a review from gadenbuie October 15, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants