Card widget in Supervisely is a simple widget that can be used to display information or content in a compact format. It can be controlled by setting loading/lock properties and can be collapsed to save space. It provides a straightforward and easy-to-use solution for displaying information clearly and concisely.
Function signature
card =Card(title="Title",description="Description text",collapsable=False,content=Text("some text"),content_top_right=None,lock_message="Card content is locked",widget_id=None,)
Parameters
Parameters
Type
Description
title
str
Card widget title
description
str
Description text for card widget
collapsable
bool
Enable collapsable property to allow minimize card widget
content
Widget
Widget to place in Card widget
content_top_right
Widget
Widget to place in top right corner of Card widget
lock_message
str
Message to display when card will be locked
widget_id
str
Widget ID
title
Card widget title
type:str
defaultNone
description
Description text for card widget
type:str
defaultNone
collapsable
Enable collapsable property to allow minimize card widget
type:bool
defaultFalse
content
Widget to place in Card widget
type:Widget
defaultNone
content_top_right
Widget to place in top right corner of Card widget
type:Widget
defaultNone
lock_message
Message to display when card will be locked
type:str
default"Card content is locked"
widget_id
Widget ID
type:str
defaultNone
Methods and attributes
Attributes and Methods
Description
loading
Get or set loading property.
collapse()
Minimize card widget.
uncollapse()
Expand card widget.
is_collapsed()
Checks if card widget is collapsed or not.
lock()
Lock card widget and show message.
unlock()
Unlock card widget and hide lock message.
is_locked()
Check if card widget is locked.
Mini App Example
You can find this example in our Github repository: