size()
Sets both the width and height of the element.
size(
width: BindingOrValue<string | number | undefined>,
height?: BindingOrValue<string | number | undefined>,
): this;
Parameters
- width — The width value, in pixels or string with unit.
- height — The height value (if different from width), in pixels or string with unit.
Return value
The builder instance for chaining.
Related
class ElementBuilder abstractstatic
An abstract base class for UI element builders.
