Disabling specific cells #99
Unanswered
InjAnnuity1
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I am not sure how to change the cursor but you can import the popup module detail on how to add modules here. Then on a cell_click event you can check the values you are interested in to determine if the popup appears. Example here |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my app, it makes sense to disable some cells, based on information from the row and column.
For example, suppose a column represents an insurance policy, issued on a particular date, and a row represents one or more dated values. That is, the "effective date" is part of the row. Thus, we have two dates for each cell: an issue date, and an effective date.
If the effective date comes before the issue date, then I would like to disable the cell. After all, the value can't apply to a policy that doesn't exist yet, at that given date.
Some visual feedback for the user would be nice, too. E.g., the cell should display a "n/a", or the mouse cursor should change to 🚫 when over a non-editable cell.
This logic applies to most of the editable cells in the table. The "effective date" column must still be editable, though.
Working from the Tabulator documentation, it's far from clear how to do any of the above. Any pointers would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions