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
Would it be possible to add setter methods to the CSS style properties that are represented by a Union type? For example, to set the padding property you can't do
someElement.style.setPadding("100px")
Where as for non union types you can do:
someElement.style.color ="red";
The text was updated successfully, but these errors were encountered:
We have that logic for parameters method that take UnionType so it could make sense to have that for field.
My concern is that it could bring some confusion to end users for having getter/setter for some filed and not for all. If we go that road we should generate getter/setter for every field.
Note that I tried to generate getter and setter for every field but it introduces soveral issues like: conflict with exisiting method, JsOverlay method overriding,...
Would it be possible to add setter methods to the CSS style properties that are represented by a Union type? For example, to set the padding property you can't do
someElement.style.setPadding("100px")
Where as for non union types you can do:
someElement.style.color ="red";
The text was updated successfully, but these errors were encountered: