flow icon indicating copy to clipboard operation
flow copied to clipboard

Auto generate API for defining inline styles

Open Legioth opened this issue 10 years ago • 3 comments

There should be a type safe Element API for inline styles, e.g. element.getStyle().setTopPx(12.5);

Legioth avatar Apr 13 '16 10:04 Legioth

Added to the backlog

macjuan avatar Apr 27 '16 07:04 macjuan

@Legioth is this ticket about an API for a limited list of styles (most used)? Not sure we are able to provide an API for all the styles.

mshabarov avatar Sep 20 '22 07:09 mshabarov

I don't remember exactly what I had in mind in 2016, but I would spontaneously think that it would be resonable to have shorthands for the styles that we see as most commonly used while still also supporting the generic set(String name, String value) method for arbitrary cases (including the ones that have a dedicated method).

At the same time, this is maybe not the most important enhancement to work on since it hasn't received a single 👍 reaction in the ~6 years it's been around.

Legioth avatar Sep 20 '22 08:09 Legioth