Exercise

Setting statuses

One of the good UI/UX practices, that were highlighted in the video, is to use colors effectively. As you have also seen, color-coded statuses can be added to box()es and notificationItem() by setting the appropriate arguments.

Available statuses

This allows you to use these predefined colors to help users quickly identity the nature of the message without having to pay close attention.

In the following, you will try different statuses in the shinydashboard.

In this exercise, the shiny and shinydashboard libraries have already been loaded for you. Furthermore, the header and sidebar have been stored as sidebar, and server() is an empty function.

Instructions 1/2

undefined XP
    1
    2
  • Change the status of the "Sell alert" notification to "danger".
  • Set the status of the "Buy alert" notification to "success".