Readonly heritage

Tags: #<Tag:0x00007fa98d9e96f0>

Hello,

How handsontable works with readOnly heritage between table, columns, and cells.
As You can see, I have my table.readOnly = false and a few of my columns with readonly =true. But I can edit the column with readOnly true. How is it possible ?


Thank you.

HI @alexandre.quere

The inheritance for readOnly works from the table (general settings) to columns then cells. However, as it happens in CSS if you define some settings strictly to cells it will have a higher priority than the table and columns settings.

Referring to your case, the part on the top seems to be columns so they will overwrite the line at the bottom.

Hi @aleksandra_budnik,

Indeed, the way Table -> column -> cell = It work perfectly.
thank you for your quick answer. It help us.

You’re welcome @alexandre.quere
:slight_smile: