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

This comment was marked as outdated.

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

This comment was marked as resolved.

@cpsievert cpsievert requested a review from gadenbuie October 15, 2025 18:24
Copy link
Collaborator

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@cpsievert cpsievert merged commit 2dda3e9 into main Oct 28, 2025
67 checks passed
@cpsievert cpsievert deleted the feat/submit-input branch October 28, 2025 15:07
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.

4 participants