(已找到) here )以及 htmlTemplate
htmlTemplate
现在唯一不起作用的是在中间窗格的第二个选项卡上显示DT表。当尝试使用普通的闪亮表(renderTable/tableOutput)时,问题仍然存在。
此div已存在,但未显示任何表:
<div id="histoTable1" style="width:100%; height:auto; " class="datatables html-widget html-widget-output shiny-bound-output"></div>
我需要指定一些I/O绑定吗?或者我错过了什么?
here 并通过以下途径运行:
library(shiny) runGitHub(repo = "jQueryLayout", username = "trafficonese")
基于此 answer ,我设法弄明白了:
头部缺少一个短javascript片段,它正在侦听click事件,然后触发一个“showind”。
<script> $(document).on("click", "li.tabCenter a", function() { $(this).trigger("shown"); }); </script>
github示例现在运行良好,两个表都出现了。