-
-
Notifications
You must be signed in to change notification settings - Fork 112
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: added table sorting #517
Conversation
follow the sorting styles when active and when hover like the design |
Pull Request Test Coverage Report for Build 1218
💛 - Coveralls |
… key to up performance
…act-rainbow into implement-table-sorting
return ( | ||
<Header | ||
key={uniqueId('header')} | ||
key={`header-${index}`} |
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.
put this in a variable:
const key = `header-${index}`;
also in this way you can remove the eslint exception a the top of the file
*/ | ||
sortDirection: PropTypes.oneOf(['asc', 'desc']), | ||
/** Action triggered when a column header is clicked */ |
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.
Action triggered when a column is sorted. Receive the event object, field and sortDirection.
} | ||
} else { | ||
newSortDirection = 'asc'; | ||
} |
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.
when implement inside Table remove this logic here
fixes #453