BlazorBootstrapComponentBase Class

Root component for all Blazor Bootstrap components.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public abstract class BlazorBootstrapComponentBase : ComponentBase, 
	IDisposable, IAsyncDisposable
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase
Derived
More
Implements
IAsyncDisposable, IDisposable

Constructors

BlazorBootstrapComponentBaseInitializes a new instance of the BlazorBootstrapComponentBase class

Properties

AdditionalAttributes Additional HTML attributes to be added to the component.
Class class attribute to be applied in the Html render, for usages such as CSS.
Id The HTML id of the component. If left empty, a unique id will be generated.
IsRenderComplete Determines if the element had been rendered for the first time (assigned true in OnAfterRenderAsync(Boolean)).
This is useful for Javascript interop, to ensure the element is rendered before attempting to interact with it.

Methods

DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
DisposeAsync Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
DisposeAsyncCore Virtual method to clean-up resources asynchronously. By default, no resources are cleaned up, unless overridden in a derived class. If disposing is , the method has been called directly or indirectly by a user's code. This means managed and unmanaged resources can be disposed. If disposing is , the method has been called by the runtime from inside the finalizer, and you should not reference other objects. Only unmanaged resources can be disposed.
Finalize Default destructor, to ensure IDisposable is executed properly.
(Overrides ObjectFinalize)
OnAfterRenderAsync Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs. This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.
(Overrides ComponentBaseOnAfterRenderAsync(Boolean))
OnInitialized Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
(Overrides ComponentBaseOnInitialized)

See Also