代码之家  ›  专栏  ›  技术社区  ›  SeGa

JQueryLayout和DT表不工作的闪亮应用程序

  •  0
  • SeGa  · 技术社区  · 7 年前

    (已找到) here )以及 htmlTemplate

    现在唯一不起作用的是在中间窗格的第二个选项卡上显示DT表。当尝试使用普通的闪亮表(renderTable/tableOutput)时,问题仍然存在。

    • 在“图形”选项卡上,将显示一个绘图条形图和一个DT表格((工作正常)
    • 在“Tabelle”选项卡上,还应显示另一个DT表( 不起作用 )

    此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")
    
    1 回复  |  直到 7 年前
        1
  •  0
  •   SeGa    7 年前

    基于此 answer ,我设法弄明白了:

    头部缺少一个短javascript片段,它正在侦听click事件,然后触发一个“showind”。

    <script>
        $(document).on("click", "li.tabCenter a", function() {
            $(this).trigger("shown");
        });
    </script> 
    

    github示例现在运行良好,两个表都出现了。

    推荐文章