Skip to contents

Returns standardized DT::datatable options for consistent table formatting across the TextAnalysisR application.

Usage

get_dt_options(scroll_y = "400px", page_length = 25, show_buttons = TRUE)

Arguments

scroll_y

Vertical scroll height (default: "400px")

page_length

Number of rows per page (default: 25)

show_buttons

Whether to show export buttons (default: TRUE

Value

A list of DT options

Examples

if (FALSE) { # \dontrun{
DT::datatable(my_data, options = get_dt_options())
DT::datatable(my_data, options = get_dt_options(scroll_y = "300px"))
} # }