indicator class
Displays a label on a red-to-green scale at a specific position.
Methods¶
__init__() ¶
__init__(
display=None,
value=None, # min
min=0,
max=100,
format=None,
orientation="horizontal",
width=None,
height=None,
hover_text=None,
id=None,
properties=None,
class_name=None,
) -> None
Create a new indicator
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Any
|
The label to be displayed. |
None
|
|
Union[int, float]
|
The location of the label on the [min, max] range. |
min
|
|
Union[int, float]
|
The minimum value of the range. |
0
|
|
Union[int, float]
|
The maximum value of the range. |
100
|
|
str
|
The format to use when displaying the value. |
None
|
|
str
|
The orientation of the indicator. |
horizontal
|
|
str
|
The width of the indicator, in CSS units (used when orientation is horizontal). |
None
|
|
str
|
The height of the indicator, in CSS units (used when orientation is vertical). |
None
|
|
str
|
UNDOCUMENTED |
None
|
|
str
|
The identifier assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
A dictionary of additional properties that can be set to the element. |
None
|
|
str
|
A space-separated list of CSS class names to be applied to the generated HTML element. |
None
|