right([value], [reize])

Class: Panel. Method inherited from UIComponent.

Description:

Convenience method to get or set the distance between the right edge of this component and the right edge of its parent.

Parameters:

Name Type Description

[value]

number

Distance from the parent's right edge.

[reize]

boolean

True to resize the width to accommodate for specified right position instead of moving the object. false to move the component.

Returns:

Returns the current right distance if no argument is provided; otherwise, returns this component.

Type: number | this