DataTableSorting

data class DataTableSorting
kotlin.Any
   ↳ androidx.ui.material.DataTableSorting

Sorting configuration for a DataTable.

Summary

Public constructors

<init>(column: Int?, ascending: Boolean, sortableColumns: Set<Int>, onSortChange: (column: Int, ascending: Boolean) -> Unit)

Sorting configuration for a DataTable.

Properties

Boolean

Whether the column specified by column, if non-null, is sorted in ascending order.

Int?

The index of the current column, if any, by which the data is sorted.

(column: Int, ascending: Boolean) -> Unit

Called when the user asks to sort the table.

Set<Int>

The columns by which the data can be sorted.

Public constructors

<init>

DataTableSorting(
    column: Int?,
    ascending: Boolean,
    sortableColumns: Set<Int>,
    onSortChange: (column: Int, ascending: Boolean) -> Unit)

Sorting configuration for a DataTable.

Properties

ascending

val ascending: Boolean

Whether the column specified by column, if non-null, is sorted in ascending order.

column

val column: Int?

The index of the current column, if any, by which the data is sorted.

When this is null, it implies that the table's sort order does not correspond to any of the columns. Setting this to a non-null value will display a sort indicator next to that column.

onSortChange

val onSortChange: (column: Int, ascending: Boolean) -> Unit

Called when the user asks to sort the table.

sortableColumns

val sortableColumns: Set<Int>

The columns by which the data can be sorted.

The current value of column, if non-null, must be in this set.