R/loon_siderbarPanel.R

Defines functions loon_sidebarPanel.default loon_sidebarPanel

# return tabPanel with corresponding sidebarPanel
loon_sidebarPanel <- function(loon.grob, tabPanelName,
                              colorList, selectBy,
                              linkingGroup, linkingGroups, loonWidgetsInfo,
                              showWorldView, displayedPanel) {
  obj <- character(0)
  class(obj) <- names(loon.grob$children)
  UseMethod("loon_sidebarPanel", obj)
}

loon_sidebarPanel.default <- function(loon.grob, tabPanelName,
                                      colorList, selectBy,
                                      linkingGroup, linkingGroups, loonWidgetsInfo,
                                      showWorldView, displayedPanel) {
  shiny::tabPanel(
    title = tabPanelName,
    shiny::fixedRow(
      shiny::column(
        6,
        do.call(
          shiny::helpText,
          list(inputId = paste0(tabPanelName, "text"),
               "None Interactive Widget"
          )
        )
      )
    )
  )
}
great-northern-diver/loon.shiny documentation built on Oct. 24, 2022, 3:32 a.m.