Twitter bootstrap popovers para la aplicación R shiny - html se interpreta como contenido de texto: ¿por qué?
Quiero agregar popovers desde el marco de arranque de Twitter a una aplicación brillante. Todo funciona bien, excepto que elhtml: true
La etiqueta no tiene efecto:
shinyUI(pageWithSidebar(
headerPanel("Header"),
sidebarPanel(
actionButton("btn-1", "Go!")
),
mainPanel(
tags$head(
tags$script('
$(document).ready(function(){
$("#btn-1")
.popover({html: true,
title: "Button 1",
content: "<h1>Press</h1> for some action",
trigger: "hover"
});
});
')
)
)
))
El mismo código que HTML / JS puro (sin la parte brillante) funciona bien:
<script>
$(document).ready(function(){
$("#btn-1")
.popover({html: true,
title: "Button 1",
content: "<h1>Press</h1> for some action",
trigger: "hover",
delay: {show: 100, hide: 100}
});
});
</script>
<button id="btn-1" type="submit" class="btn">Submit</button>
¿Algunas ideas? No estoy muy familiarizado con el marco de arranque, pero ¿puede tener que ver con la versión que se incluye con shiny?