Skip to contents

Creates a high-performance table widget using Cheetah Grid.

Usage

cheetah(
  data,
  columns = NULL,
  width = NULL,
  height = NULL,
  elementId = NULL,
  rownames = TRUE
)

Arguments

data

A data frame or matrix to display

columns

A list of column definitions. Each column can be customized using column_def().

width

Width of the widget

height

Height of the widget

elementId

The element ID for the widget

rownames

Logical. Whether to show rownames. Defaults to TRUE.

Value

An HTML widget object of class 'cheetah' that can be:

  • Rendered in R Markdown documents

  • Used in Shiny applications

  • Displayed in R interactive sessions

The widget renders as an HTML table with all specified customizations.