This is an presentation app of
shinyglide, an R package to make carousel-like or assistant-like or younameit-like shiny apps.
Did you already install a program on Windows ? Yup, this is the same thing.
To continue, click Next, use keyboard arrows, or swipe if you're on mobile.
glide component can be integrated into any shiny application. It is divided in screens. Each screen can contain anything you want, such as shiny inputs :
Or outputs :
Sometimes you don't want your user to be able to go to the next screen if a certain condition is not met. You can provide such a condition for the Back or the Next control.
Here, the Next control gets a disabled status while the following input is 0 (you can choose to hide the control instead of disabling it).
Sometimes you want to generate a screen and to show it depending of user inputs. This is possible in `shinyglide` thanks to the `screenOutput` function.
For example, check the following checkbox to get a next screen with a GIF :
When screen output computations takes long, the Next control is disabled and can show a loading label and a spinner. It comes back to its normal state when all the following screen outputs are updated.
For example, when you check the following checkbox, an artificial two seconds loading time is taken to display the next screen (yes, with another GIF).
You can add links or buttons inside your app that will act as a control to navigate between screens.
For example, the following link will go back one screen :
And this link will go back all the way to the first screen :
Default controls are created when you setup a
glide. You can customize them by changing their label, either at glide or screen level.
Here, this screen has different labels than the other screens.
You can also provide a completely custom code for your controls, either manually or with some helpers functions.
The following app gives you an example of custom controls :Sample custom controls app
Thanks for your attention. If you want to learn more and see other example apps, you can go to the project website.
You can also take a look at this application source code.