Class MBBatchingWrapper
This is a utility component that controls when batched JS interop calls are executed.
Normally, batched JS interop calls are executed using a timer in regular intervals.
In some cases, it can be an advantage to flush the batch earlier, which can be controlled with this component.
Whenever this component re-renders, the batch is flushed, hence all JS interop calls which were queued up in any child component will be executed at this point.
Inheritance
MBBatchingWrapper
Assembly: Material.Blazor.dll
Syntax
public class MBBatchingWrapper : ComponentBase
Properties
|
Improve this Doc
View Source
BatchingJsRuntime
The JS runtime selected for use by the wrapper
Declaration
protected IBatchingJSRuntime BatchingJsRuntime { get; set; }
Property Value
|
Improve this Doc
View Source
ChildContent
The child content containing Material.Blazor components whose JS Interop calls are to be batched.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type |
Description |
RenderFragment |
|
Methods
|
Improve this Doc
View Source
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type |
Name |
Description |
RenderTreeBuilder |
builder |
|
|
Improve this Doc
View Source
OnAfterRenderAsync(Boolean)
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Parameters
Type |
Name |
Description |
Boolean |
firstRender |
|
Returns
|
Improve this Doc
View Source
OnInitialized()
Declaration
protected override void OnInitialized()