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(react-grid): provide a way to customize a summary item #1567
Conversation
Use the |
<TableSummaryItem className="custom-class" /> | ||
<TableSummaryItem | ||
{...defaultProps} | ||
className="custom-class" |
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 think, in this test we should check both classes: dx-g-bs4-table-summary-item
and custom-class
. Also, we can rename it to should pass the className prop to the root element
.
@@ -17,6 +23,7 @@ describe('TableSummaryItem', () => { | |||
it('should pass style to the root element', () => { |
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.
There isn't any code that merges styles for a summary item. Well, we can have a more common test here. Something like should pass rest props to the root element
.
766ac76
to
b59366c
Compare
closes #1525