srcjs/AdminLTE/README-shiny-mods.md

This branch of AdminLTE contains the following changes from the stock version, to make it work better with Shiny.

var shinyOutput = checkElement.find('.shiny-bound-output');
if (shinyOutput.length !== 0 && shinyOutput.first().html().length === 0) {
  shinyOutput.first().html('<br/>');
}

This is inserted in the event listener for clicks on the sidebar menu items (right before app.js does a slideDown() on the clicked menuItem). The point is to enter a blank line (if there is no other content) inside the outputs, so the slideDown() animation looks reasonable.



rstudio/shinydashboard documentation built on Dec. 13, 2021, 8:02 p.m.