Flex
ClassNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class Flex : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
Flex() | Constructor | — |
Properties
13| Name | Type | Description |
|---|---|---|
Appearance | ||
Class | String | CSS class emitted for translator compatibility. Default is flex. |
FillHeight | Boolean | Whether the flex container should fill the height offered by its parent. |
FillWidth | Boolean | Whether the flex container should fill the width offered by its parent. |
Height | Nullable<Int32> | Explicit height in terminal rows. |
Width | Nullable<Int32> | Explicit width in terminal cells. |
Common | ||
ChildContent | RenderFragment | Lays out child content along a row or column axis. |
Other | ||
AdditionalAttributes | IReadOnlyDictionary<String, Object> | Additional attributes applied to the emitted flex element. |
Align | FlexAlign | How items are aligned along the cross axis. Default is Start. |
Direction | FlexDirection | The main axis direction. Default is Row. |
Expand | Boolean | Whether the flex container should expand along its main axis. Prefer FillWidth and FillHeight for new code. |
Gap | Int32 | Spacing between items along the main axis. |
Justify | FlexJustify | How free space is distributed along the main axis. Default is Start. |
Wrap | FlexWrap | Whether flex items can wrap. Default is NoWrap. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | Renders the component to the supplied RenderTreeBuilder. |