Class BeforeOpenEventArgs
Provides arguments for the OnOpen event, which is triggered before the dialog opens.
Inheritance
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
public class BeforeOpenEventArgs : Object
Remarks
This event allows for customization or cancellation of the dialog before it is displayed.
Constructors
BeforeOpenEventArgs()
Declaration
public BeforeOpenEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the opening of the dialog should be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A |
Remarks
Setting this to true
prevents the dialog from being shown.
Container
Gets the container element where the dialog will be rendered.
Declaration
public DOM Container { get; set; }
Property Value
Type | Description |
---|---|
DOM | A DOM object representing the container. |
Remarks
The dialog is appended to this container in the DOM.
Element
Gets the root DOM element of the dialog.
Declaration
public DOM Element { get; set; }
Property Value
Type | Description |
---|---|
DOM | A DOM object for the dialog element. |
Remarks
This represents the main wrapper element of the dialog component.
MaxHeight
Gets or sets a value that overrides the dialog's maximum height.
Declaration
public string MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A |
Remarks
This allows for dynamically adjusting the maximum height before the dialog is rendered.