crosstalk icon indicating copy to clipboard operation
crosstalk copied to clipboard

filter_select default value

Open pssguy opened this issue 9 years ago • 18 comments

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

pssguy avatar Apr 20 '17 17:04 pssguy

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

ajpil avatar Apr 28 '17 05:04 ajpil

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

Zibetti avatar Jun 04 '17 22:06 Zibetti

I also would appreciate this feature.

tbadams45 avatar Jun 21 '17 17:06 tbadams45

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

pssguy avatar Jul 27 '17 16:07 pssguy

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

pssguy avatar Aug 18 '17 19:08 pssguy

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

pdbentley avatar Aug 19 '17 15:08 pdbentley

It will be nice to have this.

vasim07 avatar Jul 24 '18 07:07 vasim07

same here, very nice to have

djouallah avatar Sep 26 '18 01:09 djouallah

I would really like to see this as well!

rdwinkelman avatar Mar 01 '19 02:03 rdwinkelman

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?

dmklotz avatar Jun 28 '19 14:06 dmklotz

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

keithmichaelf avatar Jul 07 '19 00:07 keithmichaelf

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

skchronicles avatar Jan 15 '21 17:01 skchronicles

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

pssguy avatar Jan 15 '21 20:01 pssguy

same here. no default renders it useless for many applications

AlexanderWanitschke avatar Feb 18 '21 20:02 AlexanderWanitschke

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.

DataStrategist avatar Feb 03 '22 12:02 DataStrategist

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

landisrm avatar May 25 '22 11:05 landisrm

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

davidaarmstrong avatar Aug 18 '22 18:08 davidaarmstrong