tabTableOne.Rd
Function to create a tab panel with one table.
tabTableOne(id, table_one)
A string representing the id.
A string representing the table.
A tab panel with one table.
dummy_data <- data.frame(
A = 1:5,
B = letters[1:5]
)
dummy_dt <- DT::datatable(dummy_data)
tabTableOne("dummy_id", dummy_dt)
#> <div class="tab-pane" title="Tabel" data-value="Tabel">
#> <div class="row">
#> <div class="col-sm-12" align="center">
#> <div class="shiny-spinner-output-container shiny-spinner-hideui ">
#> <div class="load-container shiny-spinner-hidden load1">
#> <div id="spinner-33ca7c548faf886a1ad349371ca1157e" class="loader">Loading...</div>
#> </div>
#> <div style="height:400px" class="shiny-spinner-placeholder"></div>
#> <div class="datatables html-widget html-widget-output shiny-report-size html-fill-item-overflow-hidden html-fill-item" id="dummy_id-list(filter = "none", vertical = FALSE, data = list(` ` = c("1", "2", "3", "4", "5"), A = 1:5, B = c("a", "b", "c", "d", "e")), container = "<table class=\"display\">\n <thead>\n <tr>\n <th> </th>\n <th>A</th>\n <th>B</th>\n </tr>\n </thead>\n</table>", options = list(columnDefs = list(list(className = "dt-right", targets = 1), list(orderable = FALSE, targets = 0)), order = list(), autoWidth = FALSE, orderClasses = FALSE), selection = list(mode = "multiple", selected = NULL, target = "row", selectable = NULL)) dummy_id-NULL dummy_id-NULL dummy_id-list(defaultWidth = "100%", defaultHeight = "auto", padding = NULL, fill = NULL, viewer = list(defaultWidth = NULL, defaultHeight = NULL, padding = NULL, fill = TRUE, suppress = FALSE, paneHeight = NULL), browser = list(defaultWidth = NULL, defaultHeight = NULL, padding = NULL, fill = FALSE, external = FALSE), knitr = list(defaultWidth = NULL, defaultHeight = NULL, figure = FALSE)) dummy_id-list(list(name = "jquery", version = "3.6.0", src = list(file = "lib/3.6.0"), meta = NULL, script = "jquery-3.6.0.min.js", stylesheet = NULL, head = NULL, attachment = NULL, package = "jquerylib", all_files = TRUE), list(name = "dt-core", version = "1.13.4", src = list(file = "/home/runner/work/_temp/Library/DT/htmlwidgets/lib/datatables"), meta = NULL, script = "js/jquery.dataTables.min.js", stylesheet = c("css/jquery.dataTables.min.css", "css/jquery.dataTables.extra.css"), head = NULL, attachment = NULL, package = NULL, all_files = FALSE), list(name = "jquery", version = "3.5.1", src = list(file = "lib/jquery"), meta = NULL, script = "jquery.min.js", stylesheet = NULL, head = NULL, attachment = NULL, package = "crosstalk", all_files = TRUE), list(name = "crosstalk", version = "1.2.0", src = list(file = "www"), meta = NULL, script = "js/crosstalk.min.js", stylesheet = "css/crosstalk.min.css", head = NULL, attachment = NULL, package = "crosstalk", all_files = TRUE)) dummy_id-NULL dummy_id-function (instance) { data = instance[["x"]][["data"]] if (object.size(data) > 1500000 && getOption("DT.warn.size", TRUE)) warning("It seems your data is too big for client-side DataTables. You may ", "consider server-side processing: https://rstudio.github.io/DT/server.html") data = escapeData(data, escape, colnames) data = unname(data) instance$x$data = data instance } dummy_id-list()" style="width:100%;height:auto;"></div>
#> </div>
#> </div>
#> </div>
#> </div>