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: add Table footer #1146

Closed
wants to merge 2 commits into from
Closed

Conversation

krozhkov
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@@ -106,6 +106,8 @@ export interface TableProps<I> extends QAProps {
className?: string;
/** Adds horizontal padding for edge cells. */
edgePadding?: boolean;
/** Display footer inside the table container */
renderFooter?: () => React.ReactElement | undefined;
Copy link
Contributor

Choose a reason for hiding this comment

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

React.ReactNode is more usable type here, it allows raw strings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But now I see a deeper problem here. Users may misunderstand that this property refers to the table footer (aka tfoot element). And I don't know how avoid that problem. Maybe we should rename the property?

@@ -106,6 +106,8 @@ export interface TableProps<I> extends QAProps {
className?: string;
/** Adds horizontal padding for edge cells. */
edgePadding?: boolean;
/** Display footer inside the table container */
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update README as well

@krozhkov krozhkov force-pushed the yarozhkov/feat-table-add-footer branch from 8e74677 to aa2d309 Compare November 28, 2023 15:53
@krozhkov krozhkov force-pushed the yarozhkov/feat-table-add-footer branch from aa2d309 to c2367d3 Compare November 30, 2023 09:24
@krozhkov krozhkov closed this Dec 5, 2023
@amje amje deleted the yarozhkov/feat-table-add-footer branch July 16, 2024 15:55
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