fgilde / MudBlazor.Extensions

MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
http://www.mudex.org
MIT License
245 stars 20 forks source link

Dialog cancel event handler - cancable event #85

Closed qisbic closed 5 months ago

qisbic commented 5 months ago

Feature request type

Enhance component

Component name

No response

Is your feature request related to a problem?

Please refer to discussion "Dialog cancel event handler #83"

"Ok understand. Can you create a feature request issue for that, then I will try add this , but you can also currently do this. Just set closable in the dialogOptions to false and add an own custom close button like the test alarm button, but i will try to implement an cancable event in the ÌDialogEventService`"

Describe the solution you'd like

Note: This would be useful when users want to close the dialog and ask if they want to save the current changes.

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

No response

Code of Conduct

fgilde commented 5 months ago

It's done. MudBlazor.Extensions 1.7.88 Nuget

A demo can be found here https://www.mudex.org/dialogs-closing-event Ensure browser cache for js files is empty otherwise demo maybe not work