Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Dashboard Development with Shiny

You're reading from   Hands-On Dashboard Development with Shiny A practical guide to building effective web applications and dashboards

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789611557
Length 76 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Chris Beeley Chris Beeley
Author Profile Icon Chris Beeley
Chris Beeley
Arrow right icon
View More author details
Toc

Conditional UI

Shiny provides a lots of ways to make the user experience as simple and easy as possible. By controlling what the user sees, taking control of the user's inputs, and giving the user feedback about what the application is doing and why, it is possible to make the experience easy to follow for everyone.

So, in this section, we will look at the following topics:

  • Using the conditional UI function
  • Controlling the user interface with observe()
  • Using modals to give messages to the user

The first thing to note here is that the movie selector does not show on the graph screen, as shown in the following screenshot:

Conditional UI function under Movie picker tab

It is often useful in a large application to show the user only those controls that can currently be used. This prevents your UI from being cluttered and helps show how the application works.

As you can see...

You have been reading a chapter from
Hands-On Dashboard Development with Shiny
Published in: Aug 2018
Publisher: Packt
ISBN-13: 9781789611557
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image