'Antd, How can I disable row of editable cell of Table

I use Editable Cell of Table

I want to disable row when age value is '33' include select(=checkbox)

There is sandbox test code

help me

test code



Solution 1:[1]

There is a Table property called rowSelection.

You can pass to a function the record (the row you are editing or want to disable) and check inside the age.value if it's equal with 33.

For more check this link: https://codesandbox.io/s/76pyq5?file=/demo.js:1601-1614

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Clem