Class BeforeOpenEventArgs
Provides arguments for the OnOpen event, which is triggered before the dialog opens.
Inheritance
System.Object
BeforeOpenEventArgs
Namespace: Syncfusion.Blazor.Toolkit.Popups
Assembly: Syncfusion.Blazor.Toolkit.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.
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.