2017-01-10 42 views
0

我的網頁以HTML格式完成,並通過簡單的輸出$匹配HTML元素的ID連接到Shiny。

爲了表示在網頁上表中的數據下面的代碼工作正常:

server.R

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> 

如何股利樣子? 我發現了datatables,這沒有奏效。

感謝您的幫助!

回答

0

從控制檯運行應用程序並在瀏覽器中檢查。這對我來說是一個datatable具有默認屬性:

class="datatables html-widget html-widget-output shiny-bound-output" 
+0

感謝萬斯,這就是我所嘗試的,並再次嘗試。不幸的是,這對我不起作用。 –