1. Learn
  2. /
  3. Courses
  4. /
  5. Creating Dashboards with shinydashboard

Exercise

Allow the user to input an alert threshold

Perhaps the people using your application would rather have a different threshold for changing the color of your value box. Create a slider in the sidebar to allow the user to input the threshold for the value box color.

Instructions

100 XP
  • Create a slider in the sidebar to allow the user to input the threshold for the value box color. This should have the following parameters:
  • inputId: "threshold", label: "Color Threshold", min: 0, max: 100, value: 10.
  • Update the server to include the user's input.
  • Rerun the application with these changes.