Skip to contents

GTTable module that displays tables using gt that are supported by gt::render_gt() and gt::gt_output().

Value

self

Super class

DarwinShinyModules::ShinyModule -> GTTable

Active bindings

fun

(function) Function to produce a gt table with, i.e gt::gt.

args

(list) Arguments for said function as a named list i.e. list(data = iris).

Methods

Inherited methods


Method new()

Initializer method.

Usage

GTTable$new(fun, args)

Arguments

fun

(function) Function to produce a gt table with, i.e gt::gt.

args

(list()) Arguments for said function as a named list i.e. list(data = iris).


Method clone()

The objects of this class are cloneable with this method.

Usage

GTTable$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

library(DarwinShinyModules)

gtTable <- GTTable$new(
  fun = gt::gt,
  args = list(data = iris)
)

if(interactive()) {
  preview(gtTable)
}