R/module_importTab.R

Defines functions importTab

importTab <- function(id, label, accept, callback = function() NULL) {

  ## create a namespace function using the provided id
  ns <- NS(id)

  tabPanel("Import",

           div(align = "center", h5("Data import")),

           # file upload button
           fileInput(inputId = "file",
                     label = strong(label),
                     accept = accept),

           # import
           actionButton(inputId = "import",
                        label = "Import",
                        class = "btn btn-success"),

           ## callback function
           callback()
           )
}

Try the RLumShiny package in your browser

Any scripts or data that you put into this service are public.

RLumShiny documentation built on Dec. 19, 2025, 9:07 a.m.