dataTable.Rd
Objects of class "dataTable" provide HTML tables with interactive controls powered by the DataTable Javascript library.
dataTable(x, ...)
# S3 method for default
dataTable(x, ...)
# S3 method for data.frame
dataTable(x, ...)
# S3 method for dataTable
display_data(
x,
...,
metadata = emptyNamedList,
id = attr(x, "id"),
update = FALSE
)
A "dataTable" object
Other arguments passed to the initialization method of 'dataTableClass' R6 objects
A list of metadata strings
An ID string
A logical value; whether an existing display item will be updated
dataTable(default)
: Default method
dataTable(data.frame)
: data.frame method
display_data(dataTable)
: dataTable method for display_data
dataTable()
: A dataTable constructor
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 widgets that contains the navigator buttons
scrollY
The vertical scroll amount
height
The height of the iframe
new()
Initialize the DataTable
dataTableClass$new(obj, size = 50, nlines = min(nrow(obj), 15), ...)