![](/img/trans.png)
[英]formatCurrency in DT::renderDataTable when datatable has no columns
[英]Shiny HTML Element and DT::renderDataTable output$
我的網頁以HTML格式完成,並通過HTML元素的簡單output $匹配ID連接到Shiny。
為了表示網頁上的表格數據,以下代碼可以正常工作:
服務器
output$InfoTable <- renderTable({...})
index.html
<div id="InfoTable " class="shiny-html-output"></div>
現在我的問題...
這對DataTable如何起作用?
output$InfoDataTable <- DT::renderDataTable({...})
index.html
<div id="InfoDataTable" class="???"></div>
div看起來如何? 我發現數據表不起作用。
謝謝你的幫助!
從控制台運行該應用程序,然后在瀏覽器中進行檢查。 這是什么來彌補我一個datatable
默認屬性:
class="datatables html-widget html-widget-output shiny-bound-output"
您需要添加腳本:
' <script src="datatables-binding-0.5/datatables.js"></script>
'
而renderDataTable的div類是datatables html-widget html-widget-output
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.