Skip to content

Commit

Permalink
Fix #2367 by passing through parameters.Modal to `ShowSplashScreen...…
Browse files Browse the repository at this point in the history
…` methods (#2398)

Also adjust the samples to show these behaviors
  • Loading branch information
vnbaaij authored Jul 18, 2024
1 parent 5ebaa3d commit 3099581
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7020,17 +7020,17 @@
Gets or sets the content to display. All first HTML elements are included in the items flow.
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentOverflowItem.Overflow">
<summary>
Gets True if this component is out of panel.
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentOverflowItem.Fixed">
<summary>
Gets or sets if this item dos not participates in overflow logic.
Defaults to false
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentOverflowItem.Overflow">
<summary>
Gets True if this component is out of panel.
</summary>
</member>
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentOverflowItem.Text">
<summary>
Gets the InnerText of <see cref="P:Microsoft.FluentUI.AspNetCore.Components.FluentOverflowItem.ChildContent"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@
{
if (firstRender)
{

// Simulation of loading process
await Task.Delay(7000);
await Task.Delay(Content.DisplayTime);

// Close the dialog
await Dialog.CloseAsync();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ private async Task OpenSplashCustomAsync()
LoadingText = "Filling the re-useable bottles...",
Message = (MarkupString)"Don't drink <strong>too</strong> much water!",
Logo = "_content/FluentUI.Demo.Shared/images/Splash_Corporation_logo.png",
DisplayTime = 7000
},
Width = "500px",
Height = "300px",
Expand All @@ -35,7 +36,7 @@ private async Task OpenSplashCustomAsync()
}
private void OpenSplashCustom()
{
DemoLogger.WriteLine($"Open custom splashscreen for 7 seconds");
DemoLogger.WriteLine($"Open custom splashscreen for 4 seconds");
DialogParameters<SplashScreenContent> parameters = new()
{
Content = new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private async Task OpenSplashDefaultAsync()
Logo = FluentSplashScreen.LOGO,
},
PreventDismissOnOverlayClick = true,
Modal = false,
Width = "640px",
Height = "480px",
};
Expand Down Expand Up @@ -57,6 +58,7 @@ private void OpenSplashDefault()
},
Width = "640px",
Height = "480px",
Modal = true,
};
DialogService.ShowSplashScreen(this, HandleDefaultSplashAsync, parameters);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void ShowSplashScreen(Type component, object receiver, Func<DialogResult,
{
DialogType = DialogType.SplashScreen,
Alignment = HorizontalAlignment.Center,
Modal = true,
Modal = parameters.Modal,
PreventDismissOnOverlayClick = parameters.PreventDismissOnOverlayClick,
ShowDismiss = false,
ShowTitle = false,
Expand Down Expand Up @@ -101,7 +101,7 @@ public async Task<IDialogReference> ShowSplashScreenAsync(Type component, object
{
DialogType = DialogType.SplashScreen,
Alignment = HorizontalAlignment.Center,
Modal = false,
Modal = parameters.Modal,
PreventDismissOnOverlayClick = parameters.PreventDismissOnOverlayClick,
ShowDismiss = false,
ShowTitle = false,
Expand Down

0 comments on commit 3099581

Please sign in to comment.