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

children

col

col_class

Type: Type[PanelCol]

endpoints

Type: Namespace

extra

Type: Dict[str, Any]

See extra

extra_evaluated

Type: Dict[str, Any]

See extra

extra_params

fieldset_legend     (evaluated)

Type: str

include     (evaluated)

Type: bool

See include

iommi_style

Type: str

nested_path     (evaluated)

Type: str

tag     (evaluated)

See tag

template     (evaluated)

Type: Union[str, Template]

Shortcuts

Panel.alert

Defaults

  • tag
    • div

  • attrs__role
    • alert

  • attrs__class__alert
    • True

Panel.card

eg. for bootstrap div.card

Defaults

  • tag
    • div

  • attrs__class__card
    • True

  • template
    • iommi/form/panel_card.html

Panel.card_header

Defaults

  • tag
    • div

  • attrs__class__card-header
    • True

Panel.cell

Defaults

  • tag
    • None

Panel.div

Defaults

  • tag
    • div

Panel.field

generates form field

Defaults

  • tag
    • None

Panel.fieldset

generates <fieldset><legend>{legend}</legend>{subfields/subpanels}</fieldset>

Defaults

  • tag
    • fieldset

  • template
    • iommi/form/panel_fieldset.html

Panel.nested_form

generates nested form

Defaults

  • tag
    • None

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

  • tag
    • None

Panel.reorder_handle

Parent: Panel.cell

Defaults

  • tag
    • span

  • attrs__title
    • Drag and drop to reorder

  • attrs__class__reordering-handle-cell
    • True

  • attrs__data-iommi-reordering-handle
    • True

Panel.row

generates div.row

Defaults

  • tag
    • div

  • attrs__class__row
    • True

Methods

as_dict

get_cell_panels

recursively gets all cells from the panel

get_fields

recursively gets all fields from the panel

on_bind

own_evaluate_parameters