Keyboard on Shiny mobile view

337 visualizações
Pular para a primeira mensagem não lida

Andre Marais

não lida,
25 de nov. de 2014, 05:07:2925/11/2014
para shiny-...@googlegroups.com
Hey

I'm building a dashboard using Shiny which is mostly intended for mobile viewing. Is it somehow possible to keep the keyboard from popping up, while accessing the dashboard from a mobile device?

Thanks!
Andre

Peter Ellis

não lida,
12 de fev. de 2015, 15:27:0112/02/2015
para shiny-...@googlegroups.com
Can I assume there isn't an answer to this one yet? Unfortunately it seems to make most of my Shiny apps, that would be fine regarding screen size etc., almost unusable on a mobile device.

Winston Chang

não lida,
12 de fev. de 2015, 15:40:1512/02/2015
para Peter Ellis, shiny-discuss
I don't think I've seen this. Are you saying that the keyboard pops up even if you haven't selected a text field?

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/a00dd6ae-d7e0-4335-b861-f478883d5364%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Andre Marais

não lida,
13 de fev. de 2015, 02:37:5813/02/2015
para shiny-...@googlegroups.com
Nope I kinda gave up for now :P

Something like inputSelect with Multiply = T feels like it shouldn't need the keyboard, but it actually does when you want to remove a selection. But inputs like dataInput bring up the keyboard, which isn't really necessary.  

I know way to little to really know where to fiddle around with settings. I think it's more of a device setting than an html/shiny setting, but i might be completely wrong 

Winston Chang

não lida,
13 de fev. de 2015, 12:24:3713/02/2015
para Andre Marais, shiny-discuss
With a selectInput, I think that if you use selectize=F, I think it won't bring up the keyboard. The selectize-style inputs allow typing, but the non-selectize version doesn't.

I'm not sure what you mean by "dataInput", so I can't help with that.

-Winston

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.

Peter Ellis

não lida,
13 de fev. de 2015, 15:53:0913/02/2015
para shiny-...@googlegroups.com, agma...@gmail.com
Winston's method, of using selectize=FALSE, does the trick, reverts to the usual HTML drop down box which works really well with the mobile devices I tested it on.

I'm now interested in whether it's possible to keep using selectize (if you want its flexibility and power) but switch off this keyboard popup behaviour.  Based on this sligthly acrimonious discussion: https://github.com/brianreavis/selectize.js/issues/110 which I may be misunderstanding, I thought putting

 tags$script(HTML("('.selectize-input input').prop('disabled', true);"))


into my ui.R would do the trick but it doesn't - I'm sure there's something simple I've got wrong (incorporating javascript directly into Shiny is new for me).

Drew

não lida,
15 de jan. de 2017, 01:54:0215/01/2017
para Shiny - Web Framework for R, agma...@gmail.com, peter.el...@gmail.com
Was a solution to this problem ever found?  I have the same problem wherein I would like to use selectize, but the keyboard pops-up on on mobile devices.
Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem