R/inputAnnotate.R

#' Create an input control that returns the positions of the
#' selected text.
#'
#' @export
inputAnnotate <- function(inputId, value = "") {
  tagList(
    singleton(tags$head(tags$script(src = "inputAnnotate/annotate.js"))),
    tags$div(id = inputId,
             class = "inputAnnotate",
             # type = "div",
             value)
  )
}
siddheshdhuri/inputAnnotate documentation built on May 29, 2019, 9:58 p.m.