Documentation

position()

Sets the position of the element within its parent.

position(
position: BindingOrValue<
UIElement.Position | UIElement.Position["gravity"] | undefined
>,
top?: string | number,
end?: string | number,
bottom?: string | number,
start?: string | number,
): this;

Summary

Positions the element using a gravity value (e.g. “start”, “center”, “end”) along with optional offsets, or a complete UIElement.Position object.

Parameters

Return value

The builder instance for chaining.

Related