shinydashboardPlus icon indicating copy to clipboard operation
shinydashboardPlus copied to clipboard

box() closable visibility = hidden instead of display = none

Open nvelden opened this issue 3 years ago • 2 comments

When closable is set to TRUE the display of the box is set to "none". This causes the box to be invisible and any elements in the box to be out of the DOM. This can be problematic when the box contains inputs which then are automatically set to NULL.

Would it be possible to instead add an option that when closable is set to TRUE visibility is set to "hidden" such that the elements are still accessible in the DOM?

nvelden avatar Apr 09 '21 15:04 nvelden

This behavior is controlled by AdminLTE JS code (template powering shinydashboard and shinydashboardPlus) and this is not convenient to change: https://github.com/ColorlibHQ/AdminLTE/blob/v2/dist/js/adminlte.js#L270

DivadNojnarg avatar Apr 26 '21 11:04 DivadNojnarg

I would encourage you to look at: https://github.com/RinteRface/bs4Dash which is a more modern version for Shiny.

DivadNojnarg avatar Apr 26 '21 11:04 DivadNojnarg