Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Apr 25, 2025

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

Here is a hello world example:

library(shiny)
library(bslib)

ui <- page_sidebar(
  title = "Hello input_submit_textarea()",
  input_submit_textarea("text", placeholder = "Enter input to submit"),
  textOutput("value")
)

server <- function(input, output, session) {
  output$value <- renderText({
    Sys.sleep(1)
    paste("You entered:", input$text)
  })
}

shinyApp(ui, server)

TODO

  • Tests
  • Port to PyShiny
  • Docs (component gallery)?

@cpsievert cpsievert force-pushed the feat/submit-input branch from 7aacb20 to 1d69765 Compare July 25, 2025 16:06
@cpsievert cpsievert changed the title feat(input_submit): Add new input_submit_textarea()/input_submit_button() components feat: Add input_submit_textarea() input element Sep 30, 2025
Copy link
Member

@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.

Nice! 🏄‍♂️

@cpsievert cpsievert requested a review from Copilot October 14, 2025 23:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 11 out of 18 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cpsievert cpsievert merged commit ba1be9a into main Oct 14, 2025
1 check passed
@cpsievert cpsievert deleted the feat/submit-input branch October 14, 2025 23:45
@gadenbuie gadenbuie restored the feat/submit-input branch October 28, 2025 15:02
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.

3 participants