Difference between task.open and task.$open

according to the documentation.

  1. to set the initial status use task.open.
  2. to update the status use task.$open

Im using this from backend and keep state server-side. Im now just copying the value from task.open onto task.$open

Any reason this might not be a good idea?

Hello Tom,
It seems to be working the same way when you load the data, so, you can have the $open property in the loaded task object, and it will be expanded the same way as if it was the open property:

https://snippet.dhtmlx.com/gkgjhgy5

However, Gantt considers all properties starting from $ as temporary or internal properties. And when you save the changes, these properties are removed. So, the $open property is removed from the task object, but the open property remains.

Here is the comparison: