GroupBox Component
Description
This component represents a GroupBox
in Blazor, which is used to group other components within a fieldset. The component is styled dynamically based on the properties of the GroupBox
model.
Usage
Properties
groupBox: Instance of the
Blazor.GroupBox
model.
Methods
GetLegendForeColorHex(): Gets the legend's ARGB fore color in hexadecimal format.
Dynamic Rendering
The component dynamically renders a fieldset with a legend based on the GroupBox
model properties:
WMStyleBase: Applies styles based on the
groupBox
model.fieldset: Container for grouping child components.
legend: Displays the text of the
GroupBox
.
Styles
The styles for the fieldset and legend are defined within the component:
fieldset: Sets the width and border style.
legend: Positions the legend and sets its appearance.
Events
ChildContent: Renders the child content within the fieldset.
Last updated