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(react-grid): provide a way to customize a summary item #1567

Merged
merged 7 commits into from Nov 7, 2018

Conversation

ushkal
Copy link
Contributor

@ushkal ushkal commented Nov 2, 2018

closes #1525

@ushkal ushkal changed the title [WIP] provide a way to customize summary provide a way to customize a summary item Nov 6, 2018
@SergeyAlexeev
Copy link
Contributor

Use the feat(react-grid): prefix in PR name.

@ushkal ushkal changed the title provide a way to customize a summary item feat(react-grid): provide a way to customize a summary item Nov 6, 2018
<TableSummaryItem className="custom-class" />
<TableSummaryItem
{...defaultProps}
className="custom-class"
Copy link
Contributor

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', () => {
Copy link
Contributor

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.

@ushkal ushkal merged commit f131c1c into DevExpress:master Nov 7, 2018
@ushkal ushkal deleted the summary-customization branch November 7, 2018 14:03
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.

Table Summary Row - display text
3 participants