✅ Purpose
A text label that appears inside a ButtonsContainer.
🧩 Fields
text— label texttext_color— RGB color, default#000000text_style— one of:bold,italic,underline,strikethroughbuttons_container— FK to ButtonsContainerowner— FK to Usercreated_at,updated_at
🧠 Methods
-
render_html()- builds a
<span>usingBASE_LABEL_TEMPLATE - applies style and color
- builds a
-
copy(user=None, buttons_container=None)- creates a new Label and optionally attaches to another container
-
__str__()→ returnstext
🔗 Relations
- belongs to one ButtonsContainer