rstudio / crosstalk

Inter-htmlwidget communication for R (with and without Shiny)
http://rstudio.github.io/crosstalk
Other
289 stars 53 forks source link

filter_select default value #35

Open pssguy opened 7 years ago

pssguy commented 7 years ago

Would it be possible, please, to add a selected parameter cf for shiny selectInput i.e "The initially selected value (or multiple values if multiple = TRUE). If not specified then defaults to the first value for single-select lists and no values for multiple select lists."

Also a width option would be useful

ajpil commented 7 years ago

I agree with this idea. Also, I'm not sure if I am putting this in the right place, but I can't see how to set the filter to work on a single value (and not on a range).

Zibetti commented 7 years ago

This would be a very nice feature! There is any way to implement this ?

tbadams45 commented 7 years ago

I also would appreciate this feature.

pssguy commented 7 years ago

Any chance of a reply to whether this is on the horizon, or even possible?

pssguy commented 7 years ago

It would be so nice to be able to avoid images like this for users crosstalkissue

pdbentley commented 7 years ago

Same boat - presenting all the data in one hit loses its narrative effect.

vasim07 commented 6 years ago

It will be nice to have this.

djouallah commented 6 years ago

same here, very nice to have

rdwinkelman commented 5 years ago

I would really like to see this as well!

dmklotz commented 5 years ago

In the short term, has anybody found a good way to modify these selectors using custom Javscript (e.g. with htmlwidgets::onRender), like on this thread?

keithmichaelf commented 5 years ago

@dmklotz I guess no one has found a solution to this yet. Is there going to be a new update for crosstalk that will include this feature?

skchronicles commented 3 years ago

@jcheng5 I saw that you started to implement a solution for this issue but there are still a few bugs to work out. I was just wondering if you had any updates. I am also interested in this feature.

pssguy commented 3 years ago

Perhaps Joe's saving it as the big announcement at next week's conference!

AlexanderWanitschke commented 3 years ago

same here. no default renders it useless for many applications

DataStrategist commented 2 years ago

Also looking to implement this. In my application, I have a Data Table that was working fine prior to the addition of "a lot" of data (still less than 20k rows, but I guess that's a lot for the browser), and now the dashboard won't render at all. If I could select a default value, the table would never show more than 10 rows.

landisrm commented 2 years ago

+1 for this. Having the default be "all" makes this useless for many applications. It would be great to set a default value.

davidaarmstrong commented 2 years ago

+1 for this as well, but in the meantime, in case someone else ends up here, there is a good StackOverflow Answer that describes how you could use a JS chunk to select values on window load. Note, if you're knitting this from RStudio, you'll have to open the resulting display in a browser for the JS item selection to work.