Class DialogPositionData
A class used in the SfDialog to configure the custom position within the document or target.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class DialogPositionData : OwningComponentBase
Examples
In the following example, change the animation effect and delay time while opening the dialog.
@using Syncfusion.Blazor.Popups
<SfDialog Width="500px" @bind-Visible="Visibility">
<DialogTemplates>
<Content>
<p>
Dialog content
</p>
</Content>
</DialogTemplates>
<DialogPositionData X="center" Y="top">
</DialogPositionData>
</SfDialog>
@code {
private bool Visibility { get; set; } = true;
}
Constructors
DialogPositionData()
Declaration
public DialogPositionData()
Properties
X
Gets or sets the offset left value for positioning the SfDialog.
Declaration
public string X { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Y
Gets or sets the offset top value for positioning the SfDialog.
Declaration
public string Y { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts a string value. The default value is |
Methods
Dispose()
Dispose the unmanaged resources.
Declaration
public virtual void Dispose()
Dispose(Boolean)
Dispose the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing any asynchronous operation. |