dreamRs / shinyWidgets

shinyWidgets : Extend widgets available in shiny
https://dreamrs.github.io/shinyWidgets/
GNU General Public License v3.0
826 stars 153 forks source link

[docs] deprecated docs in switchInput() #687

Closed jhk0530 closed 4 months ago

jhk0530 commented 5 months ago

Thank you for making such a great package. I always use it well.

I'm creating an issue because I'm using a recent feature and the documentation hasn't been updated.

The manual for ?switchInput shows as below. width parameter as The width of the input : 'auto', 'fit', '100px', '75%'.

Unfortunately, 'auto' doesn't work with the following error message

Error in validateCssUnit(width) : "fit" is not a valid CSS unit (e.g., "100%", "400px", "auto")

How about removing "auto" to avoid confusion?

Thanks.

pvictor commented 4 months ago

Thank you, I've updated the docs. Glad you like the package!

Victor