<script src="htmlwidgets-0.4/htmlwidgets.js"></script>
<link href="datatables-1.10.5/css/jquery.dataTables.min.css" rel="stylesheet" />
<script src="datatables-1.10.5/js/jquery.dataTables.min.js"></script>
<script src="datatables-binding-0.0.35/datatables.js"></script>
Here is the HTML for the datatables I am trying to render using DT:
<div class="container-fluid">
<div class="row">
<div class="col-sm-2">
<div id="show_vars" class="shiny-html-output"></div>
<div id="download" class="shiny-html-output"></div>
</div>
<div class="col-sm-10">
<div class="well">
<div class="tabbable tabs-above">
<ul class="nav nav-pills shiny-tab-input" id="raw_data_box">
<li class="active">
<a href="#tab-2048-1" data-toggle="tab" data-value="MISO Data">MISO Data</a>
</li>
<li>
<a href="#tab-2048-2" data-toggle="tab" data-value="Sample Metadata">Sample Metadata</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" data-value="MISO Data" style="height: 600px; overflow: auto" id="tab-2048-1">
<div id="miso_data" style="width:100%; height:auto" class="datatables html-widget html-widget-output"></div>
</div>
<div class="tab-pane" data-value="Sample Metadata" style="height: 600px; overflow: auto" id="tab-2048-2">
<div id="sample_metadata" style="width:100%; height:auto" class="datatables html-widget html-widget-output"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Here is the server code:
##
## Output miso data table
##
output$miso_data <- DT::renderDataTable({
data <- MISOdataInput()
DT::datatable(data,
rownames = FALSE,
options = list(searching = FALSE,
lengthMenu = c(25, 50, 100, 200),
pageLength = 25))
})
##
## Output sample metadata table
##
output$sample_metadata <- DT::renderDataTable({
data <- sample_metadata_input()
DT::datatable(data,
rownames = FALSE,
options = list(searching = FALSE,
lengthMenu = list(c(25, 50, -1), c("25", "50", "All")),
pageLength = 25))
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/8ea92710-28af-4bb3-b1c5-0a6c6e4ab51a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/006c3ca5-b63a-4f76-ac4b-83fe2c41a2b8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/c219e433-fa19-428b-86fd-45e0ef28aa61%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/57d810a1-80ed-490c-9ab6-940b256f7538%40googlegroups.com.