After creating the list, is possible add a new user who isn’t listed in the Users to assign a tasks? Is there a dedicated API for this?
Hello @Spino,
You can update users property with the setConfig method:
Or with parse method:
Here is an example (setConfig) :
https://snippet.dhtmlx.com/soyjqts4
Here is an example (parse):
https://snippet.dhtmlx.com/wsjr2yad
Kind regards,
Thanks for the clarification and sorry for the confusion — I realize now that my original question wasn’t very clear.
I’m not looking for how to assign a task to a user already present in the initial users list.
What I actually meant was whether there is a faster or more direct way (e.g. a dedicated API) to add a new user at runtime to the users collection, so that it then becomes available in the “Assign to” dropdown.
From what I understand, the only supported way at the moment is to update the whole users array via parse() or setConfig(), and there is no addUser()-like method to push a single user into the list.
Please let me know if I missed something or if there’s a more lightweight approach.
tks in advance,