You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
716 B
26 lines
716 B
2 years ago
|
@namespace Connected.Components
|
||
|
|
||
|
@* MudRender is a container component that only renders its content, so it really doesn't do anything other than giving you the ability to force a re-render of its content
|
||
|
This is especially useful if you don't want to render the whole tree for some reason. All you need to force a renderupdate of its content is to call ForceRender() on an
|
||
|
ElementReference to Render
|
||
|
*@
|
||
|
|
||
|
@ChildContent
|
||
|
|
||
|
@code {
|
||
|
|
||
|
/// <summary>
|
||
|
/// The content to render
|
||
|
/// </summary>
|
||
|
[Parameter]
|
||
|
public RenderFragment ChildContent { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Re-render the content
|
||
|
/// </summary>
|
||
|
public void ForceRender()
|
||
|
{
|
||
|
StateHasChanged();
|
||
|
}
|
||
|
}
|