Objects of class "dataTable" provide HTML tables with interactive controls powered by the DataTable Javascript library.
Usage
dataTable(x, ...)
# Default S3 method
dataTable(x, ...)
# S3 method for class 'data.frame'
dataTable(x, ...)
# S3 method for class 'dataTable'
display_data(
x,
...,
metadata = emptyNamedList,
id = attr(x, "id"),
update = FALSE
)
Public fields
w
A container widget or NULL
page
Number of the current page
m
Width of the object divided by 'size'
r
Remainder of the widht of the object divided by 'size'
size
Number of columns in each group for horizontal paging
iframe
An <iframe> container or NULL
b_left
Button to scroll left
b_right
Button to scroll right
b_first
Button to scroll to the first group of columns
b_last
Button to scroll to the last group of columns
dt
HTML code for the visible table
obj
The tabular object being dispayed
label
A string label that shows the columns being displayed
style
A string with CSS styling
navigator
A container widget that contains the navigator buttons
scrollY
The vertical scroll amount
height
The height of the iframe
Methods
Method new()
Initialize the DataTable
Usage
dataTableClass$new(
obj,
size = 50,
nlines = min(nrow(obj), getOption("dataTable_lines", 20)),
...
)