Skip to content

Where should I add FluentDialogProvider when the project was created using the fluent blazor project templat? #2884

Answered by NabaviFard-Mahdi
LITTOMA asked this question in Q&A
Discussion options

You must be logged in to vote

In blazor SSR - interactivity per page/component you can do this in MainLayout.razor

<FluentDialogProvider @rendermode="InteractiveServer"/>

Sample :

@using PishranWebApp.Shared.Resources
@using Microsoft.FluentUI.AspNetCore.Components.DesignTokens
@inject Direction DirectionDesignToken
@inherits LayoutComponentBase

<FluentToastProvider MaxToastCount="50" Timeout="5000" Position="ToastPosition.TopCenter" @rendermode="InteractiveServer"/>
<FluentDialogProvider @rendermode="InteractiveServer"/>
<FluentTooltipProvider @rendermode="InteractiveServer"/>
<FluentMessageBarProvider Section="Main" @rendermode="InteractiveServer"/>
<FluentMenuProvider/>


<FluentLayout>
    <FluentHeader>

        <

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@LITTOMA
Comment options

@dvoituron
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by LITTOMA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants