daattali / shinyjs

💡 Easily improve the user experience of your Shiny apps in seconds
https://deanattali.com/shinyjs
Other
734 stars 119 forks source link

Abililty to add/remove a new attribute by selector #235

Closed federiva closed 3 years ago

federiva commented 3 years ago

I'm using some functions to do this actually using your excellent package. Maybe something following the idea of shinyjs::addClass/removeClass? but with attributes?

daattali commented 3 years ago

Thanks for the suggestion. I would prefer not to add this function as I think it isn't going to be widely applicable, and I try to keep the set of exported functions small so that the package is specialized for doing the most common operations. Otherwise there would be hundreds of functions and it would become unmanageable for me and daunting for users. I would keep using custom functions for adding attributes (I do that as well. There are lots of functions i use extendShinyjs for, and only rarely I think something is important enough to add to shinyjs)

federiva commented 3 years ago

Yeah I thought that that may be the reason for not seeing it over here. Thanks for the fast reply and congratulations for this awesome package!