Closed derekzoutendijk closed 2 years ago
Your sample code is unnecessarly long and complicated. I haven't tried reproducing your code for that reason, but I have verified that editable on single items does indeed work exactly as the documentation says. For example
timevis(data.frame(
start = c("2022-04-28", "2022-04-29", "2022-04-30"),
content = c("one","two","three"),
editable = c(TRUE, FALSE, TRUE)
))
The first and third items are editable, the second isn't.
If you believe there is a bug you can open a new issue but please make it a minimal simple code sample
Looking at your code, it seems like you put the editable
parameter in the groups dataframe instead of the data dataframe. The documentation only says that editable is for the data , not for groups.
Hi,
I would like to disable editing of certain items, but it seems that the editable value is not taken over from my items. I have tried multiple editable options on the timevis level (e.g. editable = TRUE, FALSE, list(overwriteTime = TRUE, overrideItems = FALSE). All of them result in using the timevis option of editable, rather than my value for the single item. Am I missing something?
Edit: I can get it working via the following callback, but that's not an ideal solution I suppose: