alignment([alignment])

Class: Menu. Method inherited from UIComponent.

Description:

Sets or gets an alignment of the component's content relative to the component, such as Label, Button, CheckBox, RadioBox, or items of a List.

Parameters:

Name Type Description

[alignment]

string

A combination of one or more words: "top bottom right left center leading trailing"

Returns:

Returns this component if an argument is provided, otherwise returns string value.

Type: this | string