Skip to content

Conversation

@samuelsumbane
Copy link

Summary
This PR adds support for dynamic page sizes in PaginatedDataTable.

Changes

  • Introduced PageSize sealed class (FixedSize and FillMaxHeight)
  • Updated rememberPaginatedDataTableState to handle dynamic page sizes
  • Internal sentinel value used to calculate rows when FillMaxHeight is selected
  • Backward-compatible: FixedSize behaves as before

Usage

val state = rememberPaginatedDataTableState(PageSize.FillMaxHeight)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant