Skip to content

DataColumnSortEvent

Inherits: Event['DataColumn']

Event emitted when a DataColumn requests sorting.

This event is delivered to DataColumn.on_sort when the user triggers sorting from a column header. Use column_index and ascending to update table state (for example, sort_column_index and sort_ascending on DataTable).

Properties

  • ascending(bool) –

    Requested sort direction: True for ascending, False for descending.

  • column_index(int) –

    Index of the column that requested sorting.

Properties#

ascending class-attribute instance-attribute #

ascending: bool = field(metadata={'data_field': 'asc'})

Requested sort direction: True for ascending, False for descending.

column_index class-attribute instance-attribute #

column_index: int = field(metadata={'data_field': 'ci'})

Index of the column that requested sorting.