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

Support slotting to disabled checkbox on Ant Design Table #2452

Closed
1 task done
ddorosz opened this issue Jun 17, 2020 · 2 comments
Closed
1 task done

Support slotting to disabled checkbox on Ant Design Table #2452

ddorosz opened this issue Jun 17, 2020 · 2 comments

Comments

@ddorosz
Copy link

ddorosz commented Jun 17, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Current UI implementation of disabled checkbox for a-table is not super clear. It is a slightly greyed out version of the regular checkbox which at a glance isn't easy to notice. Disabling selection of a specific table row could mean multiple things; i.e row is locked. For this reason, if users could slot their own component to the checkbox on the a-table (or to the disabled checkbox/radio) it would allow for more options/custom visuals of the disabled checkbox.

This would also be helpful for slotting a tooltip to the disabled-checkbox for more information as to why a specific row is disabled.

What does the proposed API look like?

To slot a tooltip to an ant design table disabled checkbox:

<a-table>
<template slot="disabled-selection-box">
<a-tooltip>
<a-icon type="lock" />
<span slot="title">This row is locked because of a reason</span>
</a-tooltip>
</template>
</a-table>
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant