Fragments¶
If you are just using iommi’s built in components like Form
and Table
, you won’t need to use Fragment
directly. Fragment
is a class that is used to compose HTML tags in a way that is later refinable. The most basic example of this is the h_tag of a form or table. A Fragment
has attrs, template and tag configuration:
table = Table(
auto__model=Artist,
h_tag__attrs__style__background='blue',
)
▼ Hide result
See the API reference for Fragment for more details.