3.0 beta 2

AX.Align

Holds content alignment properties.

var obj = new AX.Component({
    align: 'top right',
    content: 'wrap'
});

Properties

horizontal

Sets the horizontal alignment of the content elements (left|center|right).

obj.align('right'); // push content to the right side

Or, with explicit assignment -

obj.align().horizontal('right');

vertical

Sets the vertical alignment of the content box (top|middle|bottom).

obj.align('middle');

Or

obj.align({
    horizontal: 'center',
    vertical: 'middle'
})