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

是否能动态修改table中的checkbox的禁用状态,目前getCheckboxProps好像只能在第一次加载table的时候会调用一次 #10133

Closed
BlackSkyJY opened this Issue Apr 18, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@BlackSkyJY

BlackSkyJY commented Apr 18, 2018

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

What problem does this feature solve?

比如选中给你一个checkbox后我想禁用其他的和当前选中项id相同的checkbox,并改变其行样式

What does the proposed API look like?

暴露一个方法能修改行的checkbox的禁用状态

@ant-design-bot

This comment has been minimized.

ant-design-bot commented Apr 18, 2018

Translation of this issue:


Whether it can dynamically modify the disabled state of the checkbox in the table. Currently getCheckboxProps seems to be called only once when the table is loaded for the first time.

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

What problem does this feature solve?

For example, after selecting a checkbox for you, I want to disable other checkboxes with the same id as the currently selected item, and change its row style.

What does the proposed API look like?

Exposing a method can modify the disabled state of the row's checkbox

@afc163

This comment has been minimized.

Member

afc163 commented Apr 22, 2018

https://codesandbox.io/s/ymmkjpoolj

It is not working now, I will find a way to fix it.

@afc163 afc163 added the Bug🐛 label Apr 22, 2018

@afc163 afc163 closed this in 15c6d58 Apr 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment