Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(data-table): add onIncludedRowsChange callback #3130

Merged
merged 5 commits into from Mar 30, 2020

Conversation

chasestarr
Copy link
Collaborator

closes: https://github.com/uber/baseweb/issues/3099

Description

Adds a new prop to DataTable that is called when the included rows in the table change. This is useful if the application needs to do something with the filtered/sorted 'view' that the user has configured. Please note, that it's important to have a stable function provided to this prop. See here for an example. If the function is in-lined, it causes an update loop.

Scope

  • Minor: New Feature

@vercel
Copy link

vercel bot commented Mar 27, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/uber-ui-platform/baseweb/nj8lzecr9
✅ Preview: https://baseweb-git-data-table-on-included-rows-change.uber-ui-platform.now.sh

Copy link
Contributor

@gergelyke gergelyke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have to add this to the typescript defs too?

@UberOpenSourceBot
Copy link
Collaborator

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #3131

Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
@chasestarr
Copy link
Collaborator Author

Typescript defs on data-table are way out of date. I'll update it once it's 'stable'

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 30, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d654d54:

Sandbox Source
epic-lichterman-rpztt Configuration

@chasestarr chasestarr merged commit 761a0e6 into master Mar 30, 2020
@uber-baseweb-probots uber-baseweb-probots bot deleted the data-table-on-included-rows-change branch March 30, 2020 21:17
VladimirMilenko pushed a commit to VladimirMilenko/baseui that referenced this pull request Apr 2, 2020
* feat(data-table): add onIncludedRowsChange callback

* test(vrt): update visual snapshots for 893c273 [skip ci] (uber#3131)

Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>

* fix(data-table): lint

Co-authored-by: UberOpenSourceBot <33560951+UberOpenSourceBot@users.noreply.github.com>
Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants