text class
Displays a value as a static text.
Methods¶
__init__() ¶
__init__(
value="",
raw=False,
mode=None,
format=None,
width=None,
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new text
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Any
|
The value displayed as text by this control. |
|
|
bool
|
If set to True, the component renders as an HTML <span> element without any default style. |
False
|
|
str
|
Define the way the text is processed:
|
None
|
|
str
|
The format to apply to the value. |
None
|
|
Union[str, int]
|
The width of the element. |
None
|
|
str
|
The identifier that is assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
Bound to a dictionary that contains additional properties for this element. |
None
|
|
str
|
The list of CSS class names that are associated with the generated HTML Element. |
None
|
|
str
|
The information that is displayed when the user hovers over this element. |
None
|