HTML-specific styles and options

Description

HTML-specific styles and options

Usage

theme_html(
  x,
  engine = get_option("tinytable_html_engine", default = "bootstrap"),
  i = NULL,
  j = NULL,
  class = get_option("tinytable_html_class", default = NULL),
  css = get_option("tinytable_html_css", default = NULL),
  css_rule = get_option("tinytable_html_css_rule", default = NULL),
  tabulator_columns = get_option("tinytable_html_tabulator_columns", default = NULL),
  tabulator_css_rule = get_option("tinytable_html_tabulator_css_rule", default = NULL),
  tabulator_layout = get_option("tinytable_html_tabulator_layout", default =
    "fitDataTable"),
  tabulator_options = get_option("tinytable_html_tabulator_options", default = NULL),
  tabulator_pagination = get_option("tinytable_html_tabulator_pagination", default =
    NULL),
  tabulator_search = get_option("tinytable_html_tabulator_search", default = NULL),
  tabulator_stylesheet = get_option("tinytable_html_tabulator_stylesheet", default =
    "bootstrap5"),
  ...
)

Arguments

x A tinytable object.
engine Character string specifying the HTML engine: "bootstrap", "raw", or "tabulator".
i Row indices.
j Column indices.
class String. Bootstrap table class.
css Character vector. CSS style declarations.
css_rule String. Complete CSS rules.
tabulator_columns Custom column definitions.
tabulator_css_rule Complete CSS rules.
tabulator_layout Character string. Table layout algorithm for column sizing. Default is "fitDataTable". Available options: "fitDataTable", "fitData", "fitDataFill", "fitDataStretch", "fitColumns".
tabulator_options Custom Tabulator.js configuration options.
tabulator_pagination

Logical or numeric vector. Pagination settings for large tables.

  • NULL (default): Preserves existing pagination settings, does not change previous configuration

  • FALSE: Explicitly disable pagination

  • TRUE: Enable pagination with automatic page sizes (10, 25, 50, 100, 250) filtered by row count

  • Numeric vector: First element is default page size, full vector provides page size options

tabulator_search

Logical. Enable/disable search functionality.

  • NULL (default): Preserves existing search settings, does not change previous configuration

  • TRUE: Adds search box allowing users to filter table content

  • FALSE: Explicitly disable search

tabulator_stylesheet Character string. CSS stylesheet theme for Tabulator.js tables. Default is "bootstrap5". Available options: "default", "simple", "midnight", "modern", "site", "site_dark", "bootstrap3", "bootstrap4", "bootstrap5", "semanticui", "bulma", "materialize", or a custom HTTP URL starting with "http".
Additional arguments are ignored.