BcDialog
How to Implement
Add this Dialog Outlet
To open a dialog, use the BcDialogService. For more details, see the example below.
A BcDialogReference is returned, allowing subscription to the 'Close' event. If the dialog returns a value, it will be available in the event. In your DialogComponent, inherit from 'BcDialog' to access 'DialogData' and utilize 'Cancel' or 'Return' methods to close the dialog and return values.
BcDialog Properties & Methods
BackReference
BcDialogReference
The dialog caller receives this reference, which can be used to bind the close event.
DialogData
object?
Data accessible by the dialog. To pass multiple properties, consider using a struct.
Calls Return(null), effectively canceling the dialog.
Triggers the OnClose event on the BcDialogReference with the provided object.
BcDialogService Methods
Opens a dialog with the specified component type. The 'contentType' should be the type of the component to be used as a dialog. 'dialogData' can provide initial data to the component.