DayPilot.Area action = "JavaScript" is marked as Legacy, what now?
1 years ago.
Hello,
we update the DayPilot every 6 months.
After the latest update to version 2024.3.6130 our Area actions are not triggering anymore with the “js” property.
In the docs it’s mentioned that is legacy for MVC and Forms, but we use it with a web service in vanilla JavaScript:
-
"JavaScript"- custom JavaScript specified using "js" property is fired on click/tap (works on touch devices) - this is a legacy value used in ASP.NET WebForms and ASP.NET MVC versions
So we push data with Area = “JavaScript” and js = “function(e) { console.log(e.id()); }”.
Nothing happens when clicking on it.
If this was removed with the new version, how do we set a click event otherwise?
We load event with ajax, so the js field is text, not javascript code directly.
DayPilot