Table

class bootlace.table.Table(decorated_classes: Iterable[str] | None = None)[source]

Bases: object

Base 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 as dominate.tags.table.

Attributes Summary

columns

table

tbody

thead

tr

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

__call__(items: list[Any]) html_tag[source]

Call self as a function.