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

Add onTableChange callback function to EuiInMemoryTable #1060

Merged

Conversation

chandlerprall
Copy link
Contributor

Closes #923 by adding an onTableChange callback to EuiInMemoryTable. This callback fires when table sorting or pagination is changed, and is meant to be informational only.

@timroes for code review
@snide to make sure the doc change makes sense

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

Loaded locally, still works. Docs appear as provided.

@@ -71,6 +71,7 @@ export const EuiTableHeaderCell = ({
className={buttonClasses}
onClick={onSort}
aria-label={statefulAriaLabel}
data-test-subj="tableHeaderButton"
Copy link
Contributor

@cjcenizal cjcenizal Jul 31, 2018

Choose a reason for hiding this comment

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

Maybe tableHeaderSortButton would be a little clearer? If I were to read code with a selector referencing this attribute, I can see myself being unsure what tableHeaderButton is.

Adding this selector will be really helpful for our tests, so big 👍 on adding it. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like it, change made!

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

LGTM!

@chandlerprall chandlerprall merged commit 4157606 into elastic:master Aug 1, 2018
@chandlerprall chandlerprall deleted the feature/932-page-size-listener branch August 1, 2018 19:26
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.

3 participants