BlazorBootstrapComponentBase Class

Root component for all Blazor Bootstrap components.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public abstract class BlazorBootstrapComponentBase : ComponentBase
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase
Derived
More

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

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))

See Also