Panel¶
Base class: Fragment
Class used to define form and table row layouts. See the forms cookbook and the table cookbook.
Refinable members¶
_parent_form¶
_parent_table¶
_parent_table_cells¶
after (evaluated)¶
Type: Union[int, str]
See after
assets¶
Type: Namespace
See assets
attrs (evaluated)¶
Type: Attrs
See attributes
children¶
col¶
col_class¶
Type: Type[PanelCol]
endpoints¶
Type: Namespace
See endpoints
extra¶
Type: Dict[str, Any]
See extra
extra_evaluated¶
Type: Dict[str, Any]
See extra
extra_params¶
See extra_params
fieldset_legend (evaluated)¶
Type: str
include (evaluated)¶
Type: bool
See include
iommi_style¶
Type: str
See iommi_style
nested_path (evaluated)¶
Type: str
tag (evaluated)¶
See tag
template (evaluated)¶
Type: Union[str, Template]
See template
Shortcuts¶
Panel.alert¶
Defaults¶
tagdiv
attrs__rolealert
attrs__class__alertTrue
Panel.card¶
eg. for bootstrap div.card
Defaults¶
tagdiv
attrs__class__cardTrue
templateiommi/form/panel_card.html
Panel.card_header¶
Defaults¶
tagdiv
attrs__class__card-headerTrue
Panel.cell¶
Defaults¶
tagNone
Panel.div¶
Defaults¶
tagdiv
Panel.field¶
generates form field
Defaults¶
tagNone
Panel.fieldset¶
generates <fieldset><legend>{legend}</legend>{subfields/subpanels}</fieldset>
Defaults¶
tagfieldset
templateiommi/form/panel_fieldset.html
Panel.nested_form¶
generates nested form
Defaults¶
tagNone
Panel.part¶
for non-field parts/fragments you don’t need to call this by hand, non-field children of rows/fieldsets get wrapped automatically
Defaults¶
tagNone
Panel.reorder_handle¶
Parent: Panel.cell
Defaults¶
tagspan
attrs__titleDrag and drop to reorder
attrs__class__reordering-handle-cellTrue
attrs__data-iommi-reordering-handleTrue
Panel.row¶
generates div.row
Defaults¶
tagdiv
attrs__class__rowTrue
Methods¶
as_dict¶
get_cell_panels¶
recursively gets all cells from the panel
get_fields¶
recursively gets all fields from the panel