elastic / elastic/eui

[EuiBasicTable] Allow selected items to persist between page number na size changes

Open
#9,033 4 comments 0 reactions 0 assignees View on GitHub
request
Dominant language
TypeScript
Stars
6.4k
Forks
911
Avg merge
2d 15h
Merged PRs (30d)
69

Description

**Problem Statement**

![Image](https://github.com/user-attachments/assets/cc383c3c-8166-4943-ac46-2f09e1bc1787)

A user may want to select table items that are in different pages of a table. Currently, the table only allows selecting items from the current page. This is because the table clear the selection when the page changes. The callback for the selection change is called with the empty array. There's no way to distinguish between the selection being cleared because the page changed or because the user cleared the selection.

**Proposed Solution**

1. Allow the table to keep the selection when the page changes, delegating to the consumer to decide what to do with the selection.

**Use Case**

This can be used to select items from different pages of a table to export row data, for example.

**Value / Impact**

This is important because it allows users to select items from different pages of a table to export specific rows of data, for example.

**Urgency**

Not urgent. This is not a dependency for any current feature development.

**Do alternatives or workarounds exist?**

There are no workarounds that exist that can be used instead.

**Related code or customizations**

There's no related code or customizations that exist.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.