rich_text#
- class predict_backend.page.elements.rich_text.RichText(content, border=False)#
Bases:
Element
A Rich Text Element.
- Parameters:
content (
str
) – The value inside the rich text elementborder (
bool
) – Whether or not to surround the text with a border, defaults to False.
- set_content(content)#
Validate and set content (python best practice is to set instance attributes in constructor).
- Parameters:
kwargs – new content for the Element.
- set_params(params)#
Validate and set params (python best practice is to set instance attributes in constructor).
- Parameters:
kwargs – new params for the Element.