Column¶
- class bootlace.table.Column(heading: str | T, name: str | None = None, format: str | None = None)[source]¶
Bases:
ColumnBaseA column in a table, which shows the value of an attribute.
If no special formatting is applied to the attribute, it is rendered as text.
Attributes Summary
The attribute name for the column.
The heading for the column
Methods Summary
attribute_value(value)Return the value of the attribute for the given object.
cell(value)Return the cell for the column as an HTML tag.
contents(value[, format])Return the contents of the cell for the column, using an HTML comment if the attribute value is None.
Attributes Documentation
- attribute¶
The attribute name for the column.
- format: str | None¶
- name: str | None¶
- td = Tag(tag=<class 'dominate.tags.td'>, classes=set(), attributes={})¶
- th = Tag(tag=<class 'dominate.tags.th'>, classes=set(), attributes={})¶
Methods Documentation
- attribute_value(value: Any) Any¶
Return the value of the attribute for the given object.