FileThumbnail
Last updated
Last updated
FileThumbnail
widget in Supervisely displays an icon, link, and path to the file in Team Files. Clicking on the widget opens Supervisely Team Files interface, where you can view and edit the file.
Determine information about given file.
type: FileInfo
default value: None
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
ui-widgets-demos/thumbnail/005_file_thumbnail/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
FileThumbnail
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.
Parameters | Type | Description |
---|---|---|
Attributes and Methods | Description |
---|---|
info
FileInfo
Information about given file
widget_id
str
ID of the widget
set(info: FileInfo)
Set given FileInfo
in FileThumbnail
.