Table¶
- class bootlace.table.Table(decorated_classes: Iterable[str] | None = None)[source]¶
Bases:
objectBase class for class-defined tables.
Subclasses should define columns as class attributes, e.g.:
- class MyTable(Table):
name = Column(Heading(“Name”)) age = Column(Heading(“Age”))
Use
render()to render a table from a list of items asdominate.tags.table.Attributes Summary
Methods Summary
__call__(items)Call self as a function.
Attributes Documentation
- columns: ClassVar[dict[str, ColumnBase]] = {}¶
- table = Tag(tag=<class 'dominate.tags.table'>, classes=set(), attributes={})¶
- tbody = Tag(tag=<class 'dominate.tags.tbody'>, classes=set(), attributes={})¶
- thead = Tag(tag=<class 'dominate.tags.thead'>, classes=set(), attributes={})¶
- tr = Tag(tag=<class 'dominate.tags.tr'>, classes=set(), attributes={})¶
Methods Documentation