Set dialog options within dialog
This commit is contained in:
parent
0c532de7e2
commit
ff071d2680
4 changed files with 20 additions and 16 deletions
|
@ -23,6 +23,8 @@
|
||||||
MudDialog.Options.MaxWidth = MaxWidth.Large;
|
MudDialog.Options.MaxWidth = MaxWidth.Large;
|
||||||
MudDialog.Options.FullWidth = true;
|
MudDialog.Options.FullWidth = true;
|
||||||
MudDialog.Options.FullScreen = true;
|
MudDialog.Options.FullScreen = true;
|
||||||
|
MudDialog.Options.CloseButton = true;
|
||||||
|
MudDialog.Options.CloseOnEscapeKey = true;
|
||||||
|
|
||||||
MudDialog.SetOptions(MudDialog.Options);
|
MudDialog.SetOptions(MudDialog.Options);
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,14 @@
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
MudDialog.Options.MaxWidth = MaxWidth.Large;
|
||||||
|
MudDialog.Options.FullWidth = true;
|
||||||
|
MudDialog.Options.CloseButton = false;
|
||||||
|
MudDialog.Options.CloseOnEscapeKey = false;
|
||||||
|
MudDialog.Options.DisableBackdropClick = true;
|
||||||
|
|
||||||
|
MudDialog.SetOptions(MudDialog.Options);
|
||||||
|
|
||||||
HttpClient.BaseAddress = new Uri(Navigator.BaseUri);
|
HttpClient.BaseAddress = new Uri(Navigator.BaseUri);
|
||||||
|
|
||||||
Archive = new Archive()
|
Archive = new Archive()
|
||||||
|
|
|
@ -68,6 +68,14 @@
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
|
MudDialog.Options.MaxWidth = MaxWidth.ExtraLarge;
|
||||||
|
MudDialog.Options.FullWidth = true;
|
||||||
|
MudDialog.Options.CloseButton = true;
|
||||||
|
MudDialog.Options.CloseOnEscapeKey = false;
|
||||||
|
MudDialog.Options.DisableBackdropClick = true;
|
||||||
|
|
||||||
|
MudDialog.SetOptions(MudDialog.Options);
|
||||||
|
|
||||||
Snippets = ScriptService.GetSnippets();
|
Snippets = ScriptService.GetSnippets();
|
||||||
|
|
||||||
if (Script == null)
|
if (Script == null)
|
||||||
|
|
|
@ -288,14 +288,7 @@
|
||||||
["GameId"] = Game.Id
|
["GameId"] = Game.Id
|
||||||
};
|
};
|
||||||
|
|
||||||
var dialog = await DialogService.ShowAsync<ArchiveUploader>("Upload Archive", parameters, new DialogOptions()
|
var dialog = await DialogService.ShowAsync<ArchiveUploader>("Upload Archive", parameters);
|
||||||
{
|
|
||||||
CloseButton = false,
|
|
||||||
DisableBackdropClick = true,
|
|
||||||
FullWidth = true,
|
|
||||||
MaxWidth = MaxWidth.Large,
|
|
||||||
CloseOnEscapeKey = false,
|
|
||||||
});
|
|
||||||
|
|
||||||
var result = await dialog.Result;
|
var result = await dialog.Result;
|
||||||
|
|
||||||
|
@ -343,14 +336,7 @@
|
||||||
["Script"] = script
|
["Script"] = script
|
||||||
};
|
};
|
||||||
|
|
||||||
var dialog = await DialogService.ShowAsync<ScriptEditorDialog>("Edit Script", parameters, new DialogOptions()
|
var dialog = await DialogService.ShowAsync<ScriptEditorDialog>("Edit Script", parameters);
|
||||||
{
|
|
||||||
CloseButton = true,
|
|
||||||
DisableBackdropClick = true,
|
|
||||||
FullWidth = true,
|
|
||||||
MaxWidth = MaxWidth.ExtraLarge,
|
|
||||||
CloseOnEscapeKey = false,
|
|
||||||
});
|
|
||||||
|
|
||||||
var result = await dialog.Result;
|
var result = await dialog.Result;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue