Let's first look at the ui.R file, shown in the following code:
htmlTemplate( "template.html", slider = sliderInput(inputId = "year", label = "Years included", min = 1952, max = 2007, value = c(1952, 2007), sep = "", step = 5), checkbox = checkboxInput("linear", label = "Add trend line?", value = FALSE), thePlot = plotOutput("trend"))
As you can see, in this case, we are defining the inputs in the ui.R file. This is just like passing the value of customStep in the previous example, except that in this case we are passing whole widgets, not just values. These values are now referred to very simply in the template.html, like so:
... preamble<div class="container-fluid"> <div class="row"> <div class="col-sm-4"> <h3>Control panel</h3>