【发布时间】:2018-01-30 15:07:40
【问题描述】:
给定的脚本在 r shiny 中创建了一个操作按钮和一个滑块。如果我希望在 html 脚本中为 {{ button }} 提供某些属性,例如位置、左侧边距、高度和宽度,请帮助我。
<!-- template.html -->
<html>
<head>
{{ headContent() }}
</head>
<body>
<div>
{{ button }}
{{ slider }}
</div>
</body>
</html>
## ui.R ##
htmlTemplate("template.html",
button = actionButton("action", "Action"),
slider = sliderInput("x", "X", 1, 100, 50)
)
【问题讨论】:
标签: html css r shiny dashboard