-
Notifications
You must be signed in to change notification settings - Fork 842
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
Add onTableChange callback function to EuiInMemoryTable #1060
Conversation
There was a problem hiding this 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" |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #923 by adding an
onTableChange
callback toEuiInMemoryTable
. 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