Class BOBFlexStack
- Namespace
- BlazOrbit.Components.Layout
- Assembly
- BlazOrbit.dll
[GenerateComponentInfo]
public class BOBFlexStack : BOBComponentBase, IPureBuiltComponent, IBuiltComponent, IHasFullWidth, IHasBackgroundColor, IHasBorder, IHasShadow, IHasColor
- Inheritance
-
objectComponentBaseBOBFlexStack
- Implements
- Inherited Members
Constructors
BOBFlexStack()
public BOBFlexStack()
Properties
AlignContent
AlignContent.
[Parameter]
public FlexStackAlignContent AlignContent { get; set; }
Property Value
AlignItems
AlignItems.
[Parameter]
public FlexStackAlignItems AlignItems { get; set; }
Property Value
BackgroundColor
Background color of the stack. Accepts any valid CSS color value, PaletteColor or BOBColor.
[Parameter]
public string? BackgroundColor { get; set; }
Property Value
- string
Border
Border style applied to the stack edge.
[Parameter]
public BorderStyle? Border { get; set; }
Property Value
ChildContent
Content rendered inside the component.
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
- RenderFragment
Color
Text color of the stack. Accepts any valid CSS color value, PaletteColor or BOBColor.
[Parameter]
public string? Color { get; set; }
Property Value
- string
ColumnGap
ColumnGap.
[Parameter]
public string? ColumnGap { get; set; }
Property Value
- string
Direction
Direction.
[Parameter]
public FlexStackDirection Direction { get; set; }
Property Value
FullWidth
When true, the component spans the full width of its container.
[Parameter]
public bool FullWidth { get; set; }
Property Value
- bool
Gap
Gap.
[Parameter]
public string? Gap { get; set; }
Property Value
- string
JustifyContent
JustifyContent.
[Parameter]
public FlexStackJustifyContent JustifyContent { get; set; }
Property Value
M
M.
[Parameter]
public string? M { get; set; }
Property Value
- string
Mb
Mb.
[Parameter]
public string? Mb { get; set; }
Property Value
- string
Ml
Ml.
[Parameter]
public string? Ml { get; set; }
Property Value
- string
Mr
Mr.
[Parameter]
public string? Mr { get; set; }
Property Value
- string
Mt
Mt.
[Parameter]
public string? Mt { get; set; }
Property Value
- string
Mx
Mx.
[Parameter]
public string? Mx { get; set; }
Property Value
- string
My
My.
[Parameter]
public string? My { get; set; }
Property Value
- string
P
P.
[Parameter]
public string? P { get; set; }
Property Value
- string
Pb
Pb.
[Parameter]
public string? Pb { get; set; }
Property Value
- string
Pl
Pl.
[Parameter]
public string? Pl { get; set; }
Property Value
- string
Pr
Pr.
[Parameter]
public string? Pr { get; set; }
Property Value
- string
Pt
Pt.
[Parameter]
public string? Pt { get; set; }
Property Value
- string
Px
Px.
[Parameter]
public string? Px { get; set; }
Property Value
- string
Py
Py.
[Parameter]
public string? Py { get; set; }
Property Value
- string
RowGap
RowGap.
[Parameter]
public string? RowGap { get; set; }
Property Value
- string
Shadow
Shadow style applied to the stack surface.
[Parameter]
public ShadowStyle? Shadow { get; set; }
Property Value
Wrap
Wrap.
[Parameter]
public FlexStackWrap Wrap { get; set; }
Property Value
Methods
BuildComponentCssVariables(Dictionary<string, string>)
Contributes additional CSS custom properties to the inline style attribute. Keys
that collide with framework-owned --bob-inline-* variables will be overwritten.
public void BuildComponentCssVariables(Dictionary<string, string> cssVariables)
Parameters
cssVariablesDictionary<string, string>
BuildComponentDataAttributes(Dictionary<string, object>)
Contributes additional data- attributes to the root element. Keys that collide
with framework-owned data-bob- attributes will be overwritten.
public void BuildComponentDataAttributes(Dictionary<string, object> dataAttributes)
Parameters
dataAttributesDictionary<string, object>
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder