Icons
Introduction
In this tutorial you will learn how to use Icons
widget in Supervisely app.
Function signature
Parameters
Parameters | Type | Description |
---|---|---|
|
| Icon class name (e.g "zmdi zmdi-image-o") |
|
| Icon color |
|
| Icon background color |
|
| Round icon |
|
| Icon image url |
|
| Id of the widget |
class_name
Determines icon class name. Icons can be found at zavoloklom.github.io.
type: str
default value: None
color
Determines icon color.
type: str
default value: None
bg_color
Determines icon background color.
type: str
default value: None
rounded
Round icon.
type: bool
default value: False
image_url
Icon image url.
type: str
default value: None
widget_id
ID of the widget.
type: str
default value: None
Methods and attributes
Attributes and Methods | Description |
---|---|
| Set |
| Return |
| Set |
| Return |
| Set |
| Return |
| Set |
| Set |
| Check |
| Set |
| Return |
Mini App Example
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/media/008_icons/src/main.py
Import libraries
Initialize Button
we will use
Button
we will useInitialize Icons
widget
Icons
widgetCreate app layout
Prepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create app using layout
Create an app object with layout parameter.
Add functions to control widget from python code
Last updated