recon_gen.common.tree.text_boxes
Tree-side wrapper for models.SheetTextBox — the rich-text box
nodes used on landing-page sheets (Getting Started).
QuickSight splits a sheet’s contents into Visuals and TextBoxes
in the underlying model, but at the layout level both occupy
GridLayoutElement slots — only the ElementType differs
("VISUAL" vs "TEXT_BOX"). The LayoutNode Protocol in
structure.py abstracts over that split so callers see a single
Sheet.place(node, ...) API regardless of which underlying field
the node will eventually emit into.
Classes
|
Tree-side rich-text box. |
- class recon_gen.common.tree.text_boxes.TextBox(text_box_id, content)[source]
Bases:
objectTree-side rich-text box.
Mirrors the
KPI/Table/BarChart/Sankeytyped wrapper pattern: callers construct typed nodes; the tree owns layout / id resolution / emission. Composecontentvia thecommon.rich_texthelpers (rt.text_box(...)) and pass the string in.text_box_idis required (no auto-ID for text boxes — they don’t carry a_AUTO_KIND). The ID surfaces in the layout’sElementIdand the sheet’sTextBoxeslist.- Parameters:
text_box_id (str)
content (str)
- content: str
- property element_id: str
- property element_type: Literal['VISUAL', 'FILTER_CONTROL', 'PARAMETER_CONTROL', 'TEXT_BOX', 'IMAGE']
- text_box_id: str