insertModule: Insert module

View source: R/utils_insertModule.R

insertModuleR Documentation

Insert module

Description

Use this function to insert a module and its associated server somewhere in your UI. It is inserted with a way to remove it (contained in a div). This function only manages the graphical part. Server modules are still functional and related data can still exist.

Usage

insertModule(
  id,
  selector,
  moduleUI,
  moduleUI_args = list(),
  module,
  module_args = list(),
  container_class = NULL,
 
    container_style = "border: 1px solid lightgrey; border-radius: 10px;\n  padding: 3px; margin: 3px;"
)

Arguments

id

The id to use for the modules. If you call insertModule from another module, make sure id is namespaced.

selector

A JS selector targetting the element after which the UI shall be inserted (see shiny::insertUI).

moduleUI, moduleUI_args

The module UI definition and its arguments OTHER THAN inputID. Prepare them to be input in a do.call call.

module, module_args

The module server definition and its arguments OTHER THAN inputID. Prepare them to be input in a do.call call.

container_class, container_style

CSS class and style to be applied to the module UI container.


earnaud/MetaShARK-v2 documentation built on Sept. 21, 2022, 10:52 a.m.