Skip to content
Discussion options

You must be logged in to vote

Hey @kyle-power! This thread is somewhat old, but I thought it might be still useful to add something here.

In general, with .shinyInput() wrappers you won't be able to use the onChange, value and defaultValue props as defined by the component (sometimes called differently, e.g. checked and defaultChecked). These are replaced by the the .shinyInput() wrapper with its own inputId and value props.

In this case you are asking for a fully browser-side transformation of the value. Unfortunately all solutions I can think of will be either somewhat hacky (the workarounds provided here) or complex. See below for a "proper", but complex solution:

library(shiny.fluent)

CustomComponents <- tags$scr…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@kyle-power
Comment options

@marekrogala
Comment options

Comment options

You must be logged in to vote
1 reply
@kyle-power
Comment options

Answer selected by kyle-power
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants