The position of the widget to align against the target element.

Type: String|Object
Accepted Values: 'left' | 'right' | 'top' | 'bottom' | 'center' | 'left top' | 'left bottom' | 'right top' | 'right bottom'

The my option can take on an object containing the x and y fields, which specify horizontal and vertical position specifier respectively, or a string value consisting of horizontal and vertical position specifiers separated by a space (e.g., "left top"). The default value for each position specifier is "center". If you assign the "left" value to this option, it will be converted to the "left center" value.

position: { my: 'left' };

When configuring a widget using ASP.NET MVC Wrappers, specify this option using the HorizontalAlignment and VerticalAlignment enums in the following manner.

Razor C#
Razor VB
    .Position(p => p
        .My(HorizontalAlignment.Right, VerticalAlignment.Bottom)
@(Html.DevExtreme().WidgetName() _
        p.My(HorizontalAlignment.Right, VerticalAlignment.Bottom)
    End Sub)


Holds the horizontal position specifier.

Type: String
Accepted Values: 'left' | 'right' | 'center'


Holds the vertical position specifier.

Type: String
Accepted Values: 'top' | 'bottom' | 'center'