R/mod_rawtable.R

Defines functions mod_rawtable_server mod_rawtable_ui

#' rawtable UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd 
#'
#' @importFrom shiny NS tagList 
mod_rawtable_ui <- function(id){
  ns <- NS(id)
  tagList(
    shiny.semantic::semantic_DTOutput((ns('table')))
  )
}
    
#' rawtable Server Functions
#'
#' @noRd 
mod_rawtable_server <- function(id){
  moduleServer( id, function(input, output, session){
    ns <- session$ns
    output$table <- DT::renderDataTable({shiny.semantic::semantic_DT(dataset,
                                                                     filter = c("top")
                                                                     )
                                        })
  })
}
    
## To be copied in the UI
#
    
## To be copied in the server
# 
gavandrewj/pdphApp documentation built on Dec. 20, 2021, 9:48 a.m.