You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I don’t think there’s a way to modify an attribute by adding stuff to the value; we have to replace everything.
Example of API use I think of, and why it is needed:
Division{}.class("full-height").modify(if:isToday(), element:{ $0.addClass("today") /* <== HERE */ })
Possibly some other attributes would benefit from this.
More generally we could have the possibility to access the value of an attribute to be able to at least do something like element.class(element.class + " today") (a bit less elegant, but clients could add an extension on Division in which they would implement addClass that would do the addition; currently AFAICT doing the extension is not even possible).