BcComponentBase
Description
This component serves as a base class for layout components that inherit its properties, such as the BcFlex or BcAutoGrid component.
With this, you get a component that can be easily styled through code. The ClassBuilder and StyleBuilder assist in managing classes and styles passed as properties from the outside.
For more details, see BcComponentBase.
Parameters
Id
Guid
Specifies the unique identifier for the component.
Class
string
Defines one or more CSS classes to apply to the component.
Style
string
Sets inline styles for the component.
AdditionalAttributes
Dictionary
Allows passing additional attributes to the component.
Properties
StyleBuilder
BcStyleBuilder
The BcCssStyleBuilder utility helps organize and apply CSS styles to BlazorCraft components.
ClassBuilder
BcClassBuilder
The BcCssStyleBuilder utility helps organize and apply CSS styles to BlazorCraft components.
Methods
BeforeRender is executed after `StateHasChanged` is called but before the DOM is refreshed. This is the optimal place to calculate CSS classes and styles.