← Back to Stormify Documentation

Column

class Column

Represents a column in a PagedListBase — the unit of filtering and sorting.

A column can contain one or more field paths. When multiple fields are present, filtering uses OR logic between them (e.g., searching "firstName" OR "lastName"), while filtering between different columns uses AND logic.

Columns are defined at setup time via PagedListBase.addColumn or PagedListBase.addRawColumn. After setup, the user activates/deactivates filters and sorting at runtime.

Types

Link copied to clipboard
object Companion

Exposes column Type and SortState constants as short aliases (e.g. Column.TEXT, Column.ASCENDING).

Link copied to clipboard

The type of a column, which determines how filter values are interpreted and converted to SQL conditions.

Properties

Link copied to clipboard

The current filter value, or null if no filter is active.

Link copied to clipboard

Parser that transforms user input before it reaches the database. Used for locale-aware parsing of numbers, dates, etc.

Link copied to clipboard

Whether the filter is case-sensitive. Only relevant for Type.TEXT columns. Default is false (case-insensitive).

Link copied to clipboard

The current sort state, or null if this column is not sorted.

Functions

Link copied to clipboard

Clears the filter on this column.

Link copied to clipboard
fun clearSort()

Clears sorting on this column.

Link copied to clipboard

Returns the distinct values available for this column, filtered by the active filters of other columns and the list constraints.