Skip to content

Instantly share code, notes, and snippets.

@zappingseb
Created October 2, 2018 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zappingseb/f76b938815f98eeed128c3610550e387 to your computer and use it in GitHub Desktop.
Save zappingseb/f76b938815f98eeed128c3610550e387 to your computer and use it in GitHub Desktop.
A file showing how to build a spectrum.js input in shiny with 9 lines of code
div(
shiny::textInput(inputId = "custom"),
HMTL("<script>
$('#custom').spectrum({
color: '#f00'
});
</script>"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment