right([value], [reize])
Class: Button. 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 |
|---|---|---|
|
|
number |
Distance from the parent's right edge. |
|
|
boolean |
|
Returns:
Returns the current right distance if no argument is provided or null if component doesn't have a parent; otherwise, returns this component.
Type: number | this | null
Throws:
- Error: When argument is not a number.
