DataTablePagination

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

Pagination configuration for a DataTable.

Summary

Public constructors

<init>(page: Int, rowsPerPage: Int, availableRowsPerPage: List<Int>, onPageChange: (Int) -> Unit, onRowsPerPageChange: (Int) -> Unit)

Pagination configuration for a DataTable.

Properties

List<Int>

The options to offer for the number of rows per page.

(Int) -> Unit

Invoked when the user switches to another page.

(Int) -> Unit

Invoked when the user selects a different number of rows per page.

Int

The index of the current page (starting from zero).

Int

The number of rows to show on each page.

Public constructors

<init>

DataTablePagination(
    page: Int,
    rowsPerPage: Int,
    availableRowsPerPage: List<Int>,
    onPageChange: (Int) -> Unit,
    onRowsPerPageChange: (Int) -> Unit)

Pagination configuration for a DataTable.

Properties

availableRowsPerPage

val availableRowsPerPage: List<Int>

The options to offer for the number of rows per page.

The current value of rowsPerPage must be in this list.

onPageChange

val onPageChange: (Int) -> Unit

Invoked when the user switches to another page.

onRowsPerPageChange

val onRowsPerPageChange: (Int) -> Unit

Invoked when the user selects a different number of rows per page.

page

val page: Int

The index of the current page (starting from zero).

rowsPerPage

val rowsPerPage: Int

The number of rows to show on each page.