blazor-devexpress-dot-blazor-dot-dxflyout-c96df6a6.md
Specifies the UI element relative to the flyout window’s position.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public string PositionTarget { get; set; }
| Type | Description |
|---|---|
| String |
The CSS selector that identifies the target UI element.
|
Use the PositionTarget property to specify the flyout window’s position relative to the target element. In the following code snippet, the target element is defined by its id attribute:
<DxButton Id="show-flyout" Click="() => IsOpen = !IsOpen">Show a flyout window</DxButton>
<DxFlyout @bind-IsOpen="@IsOpen" Width="210"
BodyText="Lorem ipsum dolor sit amet"
PositionTarget="#show-flyout"
Position="FlyoutPosition.BottomStart">
</DxFlyout>
@code {
bool IsOpen { get; set; } = false;
}
The position takes into account the offset specified by the Offset and Distance property values.
See Also