@* Conferma di un'azione. Il titolo dice cosa sta per succedere, il messaggio che conseguenze ha: davanti a un'azione irreversibile la domanda deve essere leggibile prima del testo, non dedotta da esso. YesText -> true, NoText o chiusura senza scelta -> null. AltText (opzionale) aggiunge una seconda scelta valida -> false. *@ @Message @YesText @code { [Parameter] public string Title { get; set; } = "Attenzione"; [Parameter] public string Message { get; set; } = string.Empty; [Parameter] public string YesText { get; set; } = string.Empty; [Parameter] public string NoText { get; set; } = "Annulla"; [Parameter] public string? AltText { get; set; } [Parameter] public Color YesColor { get; set; } = Color.Primary; private MudMessageBox? _confirmDelete; public async Task ShowAsync() { if (_confirmDelete == null) return null; return await _confirmDelete.ShowAsync(); } }