Row

class Row<TData>

A row in the table. Integer-typed depth / index use Int; values read through getValue / getUniqueValues / renderValue are typed Any? because Kotlin cannot carry the original <TValue> per-call type argument.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var _getAllCellsByColumnId: () -> Map<String, Cell<TData, Any?>>

Returns this row's cells indexed by column id.

Link copied to clipboard
lateinit var _getAllVisibleCells: () -> List<Cell<TData, Any?>>

Returns every cell on this row whose column is visible.

Link copied to clipboard

Internal cache backing aggregated getValue lookups. Mutated by key.

Link copied to clipboard

Internal cache backing getUniqueValues. Mutated by key.

Link copied to clipboard

Internal cache backing getValue. Mutated by key.

Link copied to clipboard

Per-column-filter pass/fail flags. Mutated by the filtering pipeline.

Link copied to clipboard

Per-column-filter caller-supplied metadata. Mutated by filter fns.

Link copied to clipboard
var depth: Int

Nesting depth (0 for top-level rows).

Link copied to clipboard
lateinit var getAllCells: () -> List<Cell<TData, Any?>>

Returns every cell on this row in column order.

Link copied to clipboard
lateinit var getCanExpand: () -> Boolean

True when this row can be expanded.

Link copied to clipboard
lateinit var getCanMultiSelect: () -> Boolean

True when multi-select is allowed for this row.

Link copied to clipboard
lateinit var getCanPin: () -> Boolean

True when this row can be pinned.

Link copied to clipboard
lateinit var getCanSelect: () -> Boolean

True when this row can be selected at all.

Link copied to clipboard
lateinit var getCanSelectSubRows: () -> Boolean

True when this row's sub-rows can be selected.

Link copied to clipboard
lateinit var getCenterVisibleCells: () -> List<Cell<TData, Any?>>

Returns the visible cells in the center (unpinned) section.

Link copied to clipboard
lateinit var getGroupingValue: (columnId: String) -> Any?

Returns the grouping key for columnId on this row.

Link copied to clipboard
lateinit var getIsAllParentsExpanded: () -> Boolean

True when every ancestor up to the root is expanded.

Link copied to clipboard
lateinit var getIsAllSubRowsSelected: () -> Boolean

True when every sub-row of this row is selected.

Link copied to clipboard
lateinit var getIsExpanded: () -> Boolean

True when this row is currently expanded.

Link copied to clipboard
lateinit var getIsGrouped: () -> Boolean

True when this row is a grouping parent (synthesised during grouping).

Link copied to clipboard
lateinit var getIsPinned: () -> RowPinningPosition

Returns the row's current pinned position.

Link copied to clipboard
lateinit var getIsSelected: () -> Boolean

True when this row is currently selected.

Link copied to clipboard
lateinit var getIsSomeSelected: () -> Boolean

True when some, but not all, of this row's sub-rows are selected.

Link copied to clipboard
lateinit var getLeafRows: () -> List<Row<TData>>

Returns every leaf descendant of this row (flattened).

Link copied to clipboard
lateinit var getLeftVisibleCells: () -> List<Cell<TData, Any?>>

Returns the visible cells in the left-pinned section.

Link copied to clipboard
lateinit var getParentRow: () -> Row<TData>?

Returns the parent row, or null when this is a root row.

Link copied to clipboard
lateinit var getParentRows: () -> List<Row<TData>>

Returns every ancestor row from root down to the immediate parent.

Link copied to clipboard
lateinit var getPinnedIndex: () -> Int

Index of this row within its pinned group.

Link copied to clipboard
lateinit var getRightVisibleCells: () -> List<Cell<TData, Any?>>

Returns the visible cells in the right-pinned section.

Link copied to clipboard
lateinit var getToggleExpandedHandler: () -> () -> Unit

Returns a click handler that toggles expansion for this row.

Link copied to clipboard
lateinit var getToggleSelectedHandler: () -> (event: Any?) -> Unit

Returns an event handler that toggles this row's selection from a checkbox-style event target. The event parameter is platform-specific.

Link copied to clipboard
lateinit var getUniqueValues: (columnId: String) -> List<Any?>

Returns the column-keyed unique values for columnId.

Link copied to clipboard
lateinit var getValue: (columnId: String) -> Any?

Returns the raw value at columnId for this row.

Link copied to clipboard
lateinit var getVisibleCells: () -> List<Cell<TData, Any?>>

Returns the visible cells (left + center + right pinned sections).

Link copied to clipboard

Column id that produced this group (non-null on grouped parent rows).

Link copied to clipboard

Grouping value that produced this group (non-null on grouped parent rows).

Link copied to clipboard
lateinit var id: String

Stable row id.

Link copied to clipboard
var index: Int

Index of this row within its parent's sub-rows (or top-level rows).

Link copied to clipboard

Leaf rows under this group, populated by getGroupedRowModel. Null for non-grouped rows.

Link copied to clipboard

The original data record this row was built from. Set by createRow at construction time; the null-backed default is never observed.

Link copied to clipboard

Original (unfiltered) sub-row data, when known.

Link copied to clipboard

Parent row id, or null when this is a root row.

Link copied to clipboard
lateinit var pin: (RowPinningPosition, includeLeafRows: Boolean?, includeParentRows: Boolean?) -> Unit

Pin this row to position, optionally pinning its leaves/parents too.

Link copied to clipboard

Pinned-position tag attached to rows produced by the RowPinning feature's _getPinnedRows. null for unpinned rows; otherwise "top" or "bottom".

Link copied to clipboard
lateinit var renderValue: (columnId: String) -> Any?

Returns the value at columnId, falling back to renderFallbackValue when null.

Link copied to clipboard

Sub-rows in their current order; may be re-sorted/filtered by row-model builders.

Link copied to clipboard
lateinit var toggleExpanded: (expanded: Boolean?) -> Unit

Sets the expanded state; pass null to toggle.

Link copied to clipboard
lateinit var toggleSelected: (value: Boolean?, opts: RowSelectionToggleOpts?) -> Unit

Toggles selection. Pass null for value to flip the current state; use RowSelectionToggleOpts to control whether sub-rows are also toggled.

Functions

Link copied to clipboard

Returns a shallow copy of this row. The copy carries every property by reference (function members close over the original row); the caller is free to overwrite specific fields (such as position or subRows) on the returned instance.