ImageSlider widget in Supervisely is a simple widget that displays images using Slider and is convenient to use when there is no need to add extra functions for displaying annotations or adjusting their settings, but only to display the images passed to it by a list of URLs or local paths.
Init API for communicating with Supervisely Instance. First, we load environment variables with credentials:
Prepare data for ImageSlider widget
Initialize ImageSlider widget
Initialize Text, Editor and Button widgets, we will use
Create app layout
Prepare a layout for the app using Card widget with the content parameter and place widgets that we've just created in the Container widget. Place order in the Container is important, we want buttons to be displayed above the Text widget.
Create an app using the layout
Create an app object with the layout parameter.
Our app layout is ready. It's time to handle button clicks.