-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
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: Allow user to configure the Tooltip in the Table header #29002
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit aaecc3a:
|
Codecov Report
@@ Coverage Diff @@
## feature #29002 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 393 393
Lines 7466 7467 +1
Branches 2152 2153 +1
=========================================
+ Hits 7466 7467 +1
Continue to review full report at Codecov.
|
Size Change: +184 B (0%) Total Size: 789 kB
|
components/table/Table.tsx
Outdated
@@ -96,6 +97,7 @@ export interface TableProps<RecordType> | |||
}; | |||
sortDirections?: SortOrder[]; | |||
showSorterTooltip?: boolean; |
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.
showSorterTooltip={{ placement: 'top' }}
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 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 believe showSorterTooltip={{ ... }}
is a better API.
showSorterTooltip: boolean | TooltipProps
Co-authored-by: 偏右 <afc163@gmail.com>
* feat: Allow user to configure the Tooltip in the Table header (#29002) * feat: Table header supports tooltipPlacement * docs: add Table tooltipPlacement * feat: Allow user to configure the Tooltip in the Table header * fix: fix jsx and use old code style * fix: replace if blocks with ternary operator * docs: fix url Co-authored-by: 偏右 <afc163@gmail.com> * docs: fix url Co-authored-by: harrisoff <john@smith.kyon> Co-authored-by: 偏右 <afc163@gmail.com> * fix: Row with gutter has additional gap (#29059) * chore: init gutter * feat: col support gap * chore: Update playground * fix: Safari padding * test: fix test case * test: More test case * docs: Update demo * test: Update coverage * test: Update test hack * feat(input-number): add keyboard prop to support disable keyboard (#29110) Co-authored-by: Ant Design GitHub Bot <yesmeck+ant-design-bot@gmail.com> Co-authored-by: Harrison <stlebea@foxmail.com> Co-authored-by: harrisoff <john@smith.kyon> Co-authored-by: 偏右 <afc163@gmail.com> Co-authored-by: 二货机器人 <smith3816@gmail.com> Co-authored-by: Kermit <kermitlx@outlook.com>
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
Currently there is no way to configure the Tooltip in the Table header.
📝 Changelog
☑️ Self Check before Merge
View rendered components/table/index.en-US.md
View rendered components/table/index.zh-CN.md