R/ui_utils.R

Defines functions tabItemCustom colInput

colInput = function(colwidth, inputFun, inputId, label, disabled = FALSE, ...) {
  if (disabled) {
    column(
      width = colwidth,
      shinyjs::disabled(
        inputFun(inputId = inputId, label = label, ...)
      )
    )
  } else {
    column(
      width = colwidth,
      inputFun(inputId = inputId, label = label, ...)
    )
  }
}

tabItemCustom = function(tabName, moduleUI, moduleID) {
  shinydashboard::tabItem(
    tabName = tabName,
    wellPanel(
      style = "background: transparent; border: transparent; box-shadow: none;",
      moduleUI(moduleID)
    )
  )
}
tomicapretto/cemrepboot documentation built on Dec. 31, 2020, 8:43 a.m.