NmColumn<T> class

Column definition.

Annotations

Constructors

NmColumn({required String id, required String label, required NmCell cell(T row), double width = 8, String? sub, NmIconData? headerIcon, String? tooltip, bool numeric = false, bool sortable = false, int comparator(T a, T b)?, bool visibleByDefault = true, bool hideable = true})
Creates an NmColumn.
const

Properties

cell → NmCell Function(T row)
Builds the cell of a row.
final
comparator → int Function(T a, T b)?
Client-side sort order; required for sortable unless the table sorts on the server (onSortChanged).
final
hashCode → int
The hash code for this object.
no setterinherited
headerIcon → NmIconData?
Glyph before the header label.
final
hideable → bool
Whether the columns editor may hide it.
final
id → String
Stable id (used for sort and persistence).
final
label → String
Header label.
final
numeric → bool
Right-aligns the column.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sortable → bool
Whether the header sorts the table.
final
sub → String?
Optional second header line (units, hint).
final
tooltip → String?
Header tooltip.
final
visibleByDefault → bool
Shown before the user changes the columns.
final
width → double
Width in icon units (1u = 16 logical px). Columns stretch proportionally when the table is wider than their sum.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited