Skip to content

Column

Column(*, key, label='', kind='text', sortable=True, custom=None)

One table column. key is the row-dict key; label is the header text.

kind drives cell rendering: "text" (default, escaped), "bool" (a check/close icon), "ref" (the caller pre-resolves the id→label in the DataRow cell). sortable renders the header as a sort link. custom is the escape hatch: a (row) -> cell content callback, invoked with the raw row dict; a custom column is neither sortable nor filterable.

Attributes:

  • custom (Callable``[[dict``[str, Any]], Any] | None) –
  • header (str) –
  • key (str) –
  • kind (str) –
  • label (str) –
  • sortable (bool) –
custom: Callable[[dict[str, Any]], Any] | None = None
header: str
key: str
kind: str = 'text'
label: str = ''
sortable: bool = True