Greetings, my Retool peeps. I did search for this on the forum, but got some answers that seem to be from an older version of the Table component.
-
My goal:
I'm using cloud-hosted Retool. I have a table component, which has multiple row selection as the default from the inspector. I would like to "lock" the rows selected via JavaScript in the Change event handler of another component on the page. For example, if the user selected rows 3, 5, and 8, I would like to disable the ability to change those selected rows, after the user chooses from another single-select component. -
Issue:
I have tried table.setDisable(true), but that doesn't seem to work. The other suggestion was to use a local variable to store the row selection and force write those back, which seems a little clunky.
So, I'm just wondering if there is a cleaner way to do this.
Thank you.