You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set defaults for my app's FluentUI-Blazor components by creating custom ones.
The easy ones are those where it's just @inherits <FluentComponentName> & a couple of parameters via @code { }.
But dealing with FluentTooltip, I struggle with my pursuit of preferring empty / self-closing / standalone tags over "normal" ones.
Because trying this:
@inherits FluentTooltip@code{// … left out for brevity…
[Parameter]
publicstringText{get; init; }// … left out for brevity…protectedoverrideasyncTaskOnParametersSetAsync()
{ChildContent??= @<text>@Text</text>;
// Doesn't work either: ChildContent ??= __builder => @<text>@Text</text>;awaitTask.WhenAll(InvokeAsync(StateHasChanged), base.OnParametersSetAsync());
}}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I set defaults for my app's FluentUI-Blazor components by creating custom ones.
The easy ones are those where it's just
@inherits <FluentComponentName>
& a couple of parameters via@code { }
.But dealing with
FluentTooltip
, I struggle with my pursuit of preferring empty / self-closing / standalone tags over "normal" ones.Because trying this:
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions