我试图在插件中使用闪亮的插件,插件是在js
有没有办法添加这个插件
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script> <script type="IN/CompanyInsider" data-id="2896"></script>
到我闪亮的仪表板? 这是我的仪表板代码。
> library(shiny) library(shinydashboard)
>
> ui <- dashboardPage( dashboardHeader(title="Example"),
> dashboardSidebar(
> # Custom CSS to hide the default logout panel
> tags$head(tags$style(HTML('.shiny-server-account { display: none; }'))),
> # The dynamically-generated user panel
> uiOutput("userpanel") ), dashboardBody(
> box(),
> box()
> )
> )
>
>
> server <- function(input, output, session) { }
>
> shinyApp(ui, server)
答案 0 :(得分:0)
想通了,
$rootScope.$on('$stateChangeStart', function(event, next) {
if(next.name=="whoweAre" && isTranslated)
{
next.templateUrl="templates/translated/whoweAre/whoweAre.html";
}
else if(next.name=="whoweAre" && !isTranslated)
{
next.templateUrl="templates/whoweAre/whoweAre.html";
}