View source: R/widget-datatable.R
| column | R Documentation |
Column options for data tables
column(
label = NULL,
width = NULL,
align = NULL,
formatter = NULL,
min_width = NULL,
max_width = NULL,
visible = TRUE,
sortable = TRUE,
editable = NULL
)
label |
Header text (defaults to the column name). |
width |
Fixed width in cells; |
align |
|
formatter |
|
min_width, max_width |
Limits for the estimated width. |
visible |
Show the column? (Hidden columns stay in the data; see
|
sortable |
Can the table be sorted by this column? |
editable |
Can cells be edited (when the table is |
An object of class termr_column.
column(label = "Score", width = 8, align = "right",
formatter = function(x) sprintf("%.1f", x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.