Easy JavaScript and Custom JavaScript Functions

With Shiny, JavaScript, and jQuery, you can build pretty much anything you can think of; moreover, Shiny and jQuery will do a lot of the heavy lifting, which means that fairly minimal amounts of code will be required. In this chapter, we will cover:

  • Using JavaScript to read and write to the DOM
  • Using JavaScript to send messages between client and server
  • Easy JavaScript with the shinyjs package
  • Using your own JavaScript with extend Shinyjs
  • Listening for events with JavaScript
  • Using JavaScript libraries with htmlwidgets

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.