update trigger eventi close/save
This commit is contained in:
@@ -17,6 +17,9 @@ namespace WebWindowComplex
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Classe override css x SVG (x rescale)
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string CssSvg { get; set; } = "responsive-svg";
|
||||
|
||||
@@ -26,12 +29,23 @@ namespace WebWindowComplex
|
||||
[Parameter]
|
||||
public SelectPayload? CurrSelection { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta chiusura JWD (+ refresh)
|
||||
/// se torna true --> richiesta salvataggio
|
||||
/// se torna false --> richiesta revert
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<bool> EC_OnClose { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Evento selezione template
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<TemplateSelectDTO> EC_OnSelectedTemplate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta refresh SVG da JWD
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<Dictionary<string, string>> EC_OnUpdate { get; set; }
|
||||
|
||||
@@ -573,10 +587,14 @@ namespace WebWindowComplex
|
||||
return "";
|
||||
}
|
||||
|
||||
// Ancora da fare...
|
||||
/// <summary>
|
||||
/// Richiesta chiusura SENZA salvataggio (= restore prev)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoClose()
|
||||
{
|
||||
await EC_OnClose.InvokeAsync(true);
|
||||
editLock = false;
|
||||
await EC_OnClose.InvokeAsync(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -635,7 +653,10 @@ namespace WebWindowComplex
|
||||
await DoPreviewSvg();
|
||||
}
|
||||
|
||||
// Ancora da fare..
|
||||
/// <summary>
|
||||
/// Richiesta chiusura con salvataggio
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task DoSave()
|
||||
{
|
||||
editLock = false;
|
||||
|
||||
Reference in New Issue
Block a user