Hi,
So assuming I’ve already defined a property in Units View during initialization (in my case, I defined the “size” property), how can I re-define that particular property in-code?
The reason I’m asking is because I’ve created a settings screen where users can change things in the calendar. I’m thinking of providing an option where users can change the “size” property of the Units View.
Any help will greatly be appreciated.
Thanks,
-jiminee
Basically, I’m looking for something like “scheduler.matrix.timeline.x_size” for the units view.
I was able to figure this out. Just in case anyone’s wondering the same thing, here’s how you can change size of a defined units view:
var newNumber = x;
scheduler._props.{unitsName}.size = newNumber;
…where {unitsName} is the name of your units view (without the curly brackets).
Similarly, you can do the same for any property of the units view. Remember to just refresh your scheduler after updating anything (scheduler.updateView()).