R/utils_ui.R

Defines functions custom_loader

# Title     : gwpcorMapper UI Helper Functions
# Objective : Holds ui functions to be used by gwpcorMapper.
# Created by: Joseph Percival
# Created on: 2021/02/26


custom_loader <- function(idButton, labelButton, idText, labelText){
  tagList(
    div(style="display:inline-block",
        fluidRow(
          column(
            width = 4,
            actionButton(
              inputId = idButton,
              label = labelButton
            )
          ),
          column(
            width = 8,
            shinyjs::disabled(
              textInput(
                inputId = idText,
                label = labelText,
                placeholder = "   No file selected"
              )
            )
          )
        )
    ),
    conditionalPanel(
      condition = "input.loadedData != ''",
      div(
        class='progress-bar', 'Upload Complete',
        style="margin-left: 15px; margin-top: -20px; margin-bottom: 20px; padding: 0; width: 202px;"
      )
    ),
  )
}

Try the gwpcormapper package in your browser

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

gwpcormapper documentation built on Dec. 11, 2021, 9:39 a.m.