-
-
Notifications
You must be signed in to change notification settings - Fork 51.5k
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
Disable feature for card tabs #11212
Comments
317: Update dependency antd to v3.7.1 r=magopian a=renovate[bot] This Pull Request updates dependency [antd](https://github.com/ant-design/ant-design) from `v3.7.0` to `v3.7.1` <details> <summary>Release Notes</summary> ### [3.7.1](https://github.com/ant-design/ant-design/releases/3.7.1) [Compare Source](ant-design/ant-design@3.7.0...3.7.1) - 🐞 Fix popup content can't display in Drawer component.[#​11304](`https://github.com/ant-design/ant-design/issues/11304`) - 🐞 Card using `tabList` support `disabled` prop.[#​11212](`https://github.com/ant-design/ant-design/issues/11212`) - 🐞 Fix Link of Anchor not sync when `href` update.[#​11287](`https://github.com/ant-design/ant-design/pull/11287`/files) [@​tangjinzhou] - 🐞 Fix Menu component style.[#​11299](`https://github.com/ant-design/ant-design/issues/11299`) - 🐞 Fix Drawer component don't have animation when `destroyOnClose` is set.[#​11307](`https://github.com/ant-design/ant-design/issues/11307`) - 🐞 Fix DirectoryTree can't expand when `expandedKeys` is in control.[#​11366](`https://github.com/ant-design/ant-design/issues/11366`) - 🐞 Fix Button with Tooltip under ButtonGroup style issue when Button is `disabled`.[11321](`https://github.com/ant-design/ant-design/pull/11321`) [@​tangjinzhou] --- - 🐞 修复 Drawer 内无法显示弹层组件的问题。[#​11304](`https://github.com/ant-design/ant-design/issues/11304`) - 🐞 带页签的卡片页签支持 disabled 属性。[#​11212](`https://github.com/ant-design/ant-design/issues/11212`) - 🐞 修复锚点链接组件 href 改变不更新的问题。 [#​11287](`https://github.com/ant-design/ant-design/pull/11287`/files) [@​tangjinzhou] - 🐞 修复 Menu 样式细节问题。[#​11299](`https://github.com/ant-design/ant-design/issues/11299`) - 🐞 修复 Drawer 组件设置 `destroyOnClose` 后关闭动画消失。[#​11307](`https://github.com/ant-design/ant-design/issues/11307`) - 🐞 修复 DirectoryTree 在 `expandedKeys` 属性可控时点击无法展开的问题。[#​11366](`https://github.com/ant-design/ant-design/issues/11366`) - 🐞 修复 ButtonGroup 中使用 Tooltip 的 Button 在 `disabled` 时样式不正确的问题。[11321](`https://github.com/ant-design/ant-design/pull/11321`) [@​tangjinzhou] --- </details> --- This PR has been generated by [Renovate Bot](https://renovatebot.com). Co-authored-by: Renovate Bot <bot@renovateapp.com>
@hemanthvrm i believe there has to be an option to add a tooltip or other user message to display the reason for disabling the tab. Can you kindly advise how to accomplish this? |
firstly i requested for tab disabling feature long back when it is not available , If you want tooltip on why the tab is disabled then you have to write your logic since it is not a generic usecase which will be helpful for everyone. Solution: ex: { } |
What problem does this feature solve?
Tabs feature has disabled option whereas card tabs don't have any.
What does the proposed API look like?
Adding disabled key to tablist prop for cards will solve the issue.
Right now tablist accepting only Array<{key: string, tab: ReactNode}>
The text was updated successfully, but these errors were encountered: