Page 1 of 1

[Wish] Remove read-only from CMlControl.ControlClasses

Posted: 02 Feb 2020, 12:39
by reaby
Hi,

I'm starting to like stylesheets in manialinks, and by this I do mean A LOT.
Unfortunately I'm not able to add and remove classes from controls since Control.ControlClasses is read-only.
My wish follows: would it be possible to make the property read-write :)

Code: Select all

(menuLabel as CMlLabel).ControlClasses.add("active");

// and later you could say:

(menuLabel as CMlLabel).ControlClasses.remove("active");
Thanks,
Reaby