tabTableTwo.Rd
Function to create a tab panel with two tables.
tabTableTwo(id, table_one, table_two)
A string representing the id.
A string representing the first table.
A string representing the second table.
A tab panel with two tables.
dummy_data1 <- data.frame(
A = 1:5,
B = letters[1:5]
)
dummy_dt1 <- DT::datatable(dummy_data1)
dummy_data2 <- data.frame(
X = 6:10,
Y = letters[6:10]
)
dummy_dt2 <- DT::datatable(dummy_data2)
tabTableTwo("dummy_id", dummy_dt1, dummy_dt2)
#> <div class="tab-pane" title="Tabel" data-value="Tabel">
#> <div class="row">
#> <div class="col-sm-6" 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 class="col-sm-6" align="center">
#> <div class="shiny-spinner-output-container shiny-spinner-hideui ">
#> <div class="load-container shiny-spinner-hidden load1">
#> <div id="spinner-43d31ad5c8aad01157865cb8db05277c" 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"), X = 6:10, Y = c("f", "g", "h", "i", "j")), container = "<table class=\"display\">\n <thead>\n <tr>\n <th> </th>\n <th>X</th>\n <th>Y</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>