Article 1
A column rendered as an article element.

DeepWorks Studios Blazor Component Library
A responsive grid: a DwsRow has 12 grid units per line, and each DwsColumn spans some of them, can leave some empty before it and can change both per screen size. The row lays its columns out as a wrapping flex row (like the Bootstrap grid) or as a CSS grid, in which a column can also span several rows. Everything is CSS; the components need no JavaScript.
ColSize makes a column span that many of the row's 12 grid units. Columns without a size share what is left of their line equally. A column that no longer fits into a line wraps onto the next one. Columns and lines are 24px apart by default.
<DwsRow Name='RowColumnDemo_Basic_Equal'>
<DwsColumn Name='RowColumnDemo_Basic_Equal1' Padding='8' BorderColor='DwsColor.Secondary'>Auto</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Equal2' Padding='8' BorderColor='DwsColor.Secondary'>Auto</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Equal3' Padding='8' BorderColor='DwsColor.Secondary'>Auto</DwsColumn>
</DwsRow>
<DwsRow Name='RowColumnDemo_Basic_Sized'>
<DwsColumn Name='RowColumnDemo_Basic_Sized1' ColSize='3' Padding='8' BorderColor='DwsColor.Secondary'>ColSize 3</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Sized2' ColSize='6' Padding='8' BorderColor='DwsColor.Secondary'>ColSize 6</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Sized3' Padding='8' BorderColor='DwsColor.Secondary'>Auto: the rest</DwsColumn>
</DwsRow>
<DwsRow Name='RowColumnDemo_Basic_Wrap'>
<DwsColumn Name='RowColumnDemo_Basic_Wrap1' ColSize='8' Padding='8' BorderColor='DwsColor.Secondary'>ColSize 8</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Wrap2' ColSize='6' Padding='8' BorderColor='DwsColor.Secondary'>ColSize 6: 8 + 6 > 12, so it wraps</DwsColumn>
<DwsColumn Name='RowColumnDemo_Basic_Wrap3' ColSize='4' Padding='8' BorderColor='DwsColor.Secondary'>ColSize 4</DwsColumn>
</DwsRow>ColSm, ColMd, ColLg, ColXl and ColXxl set the size from that breakpoint up (576, 768, 992, 1200 and 1400px), mobile first: a size applies until a larger breakpoint sets another one. Resize your browser window to see the columns adapt; Debug labels each column with the parameter in effect at the current width.
<DwsRow Name='RowColumnDemo_Responsive_Cards' Debug='true'>
@foreach (int i in Enumerable.Range(1, 4))
{
<DwsColumn Name='@($"RowColumnDemo_Responsive_Card{i}")' ColSize='12' ColSm='6' ColLg='3' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Card @i</DwsColumn>
}
</DwsRow>
<DwsRow Name='RowColumnDemo_Responsive_Layout' Debug='true'>
<DwsColumn Name='RowColumnDemo_Responsive_Main' ColMd='8' ColXxl='9' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Main: auto below MD, then 8, 9 from XXL</DwsColumn>
<DwsColumn Name='RowColumnDemo_Responsive_Side' ColMd='4' ColXxl='3' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Side: auto below MD, then 4, 3 from XXL</DwsColumn>
</DwsRow>Offset leaves that many grid units empty before a column; OffsetSm .. OffsetXxl change it from a breakpoint up, and 0 removes a smaller breakpoint's offset. Resize the window: the last column is centred with 1 unit on each side, 3 from MD, and from XL it moves back to the start next to its neighbour.
<DwsRow Name='RowColumnDemo_Offset_Row1' Debug='true'>
<DwsColumn Name='RowColumnDemo_Offset_A' ColSize='4' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>ColSize 4</DwsColumn>
<DwsColumn Name='RowColumnDemo_Offset_B' ColSize='4' Offset='4' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>ColSize 4, Offset 4</DwsColumn>
</DwsRow>
<DwsRow Name='RowColumnDemo_Offset_Row2' Debug='true'>
<DwsColumn Name='RowColumnDemo_Offset_Responsive' ColSize='10' Offset='1' ColMd='6' OffsetMd='3' ColXl='4' OffsetXl='0' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Responsive offset</DwsColumn>
<DwsColumn Name='RowColumnDemo_Offset_Neighbour' ColSize='12' ColXl='4' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Neighbour</DwsColumn>
</DwsRow>Order changes where a column is shown among the columns of its row, lower first (columns without an order are 0); OrderSm .. OrderXxl change it from a breakpoint up. Resize the window: below MD the columns follow the markup, from MD the last one comes first and the first one last. Order changes only what is shown, not the reading and tab order, so keep the markup in a sensible order.
<DwsRow Name='RowColumnDemo_Order_Row' Debug='true'>
<DwsColumn Name='RowColumnDemo_Order_First' ColSize='12' ColMd='4' OrderMd='1' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>First in the markup</DwsColumn>
<DwsColumn Name='RowColumnDemo_Order_Second' ColSize='12' ColMd='4' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Second in the markup</DwsColumn>
<DwsColumn Name='RowColumnDemo_Order_Third' ColSize='12' ColMd='4' OrderMd='-1' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Third in the markup</DwsColumn>
</DwsRow>Wrap NoWrap keeps all columns on one line. With sized columns that add up to more than the row's 12 units and OverflowX Auto, the row scrolls sideways, e.g. for a strip of cards. MaxWidth limits the row's width. Wrap applies to the flex layout only; grid rows always start new lines.
<DwsRow Name='RowColumnDemo_SingleLine_Row' Wrap='DwsFlexWrap.NoWrap' OverflowX='DwsOverflow.Auto' MaxWidth='720' Space='12' Padding='8' BorderColor='DwsColor.Secondary'>
@foreach (int i in Enumerable.Range(1, 8))
{
<DwsColumn Name='@($"RowColumnDemo_SingleLine_Card{i}")' ColSize='8' ColSm='5' ColMd='4' Padding='8' BorderColor='DwsColor.Primary'>Card @i</DwsColumn>
}
</DwsRow>AlignSelf moves a single column vertically within its line, instead of the row's AlignItems.
<DwsRow Name='RowColumnDemo_AlignSelf_Row' AlignItems='DwsAlignItems.FlexStart' MinHeight='120' Padding='8' BorderColor='DwsColor.Secondary'>
<DwsColumn Name='RowColumnDemo_AlignSelf_Start' Padding='4' BorderColor='DwsColor.Primary'>The row's AlignItems: FlexStart</DwsColumn>
<DwsColumn Name='RowColumnDemo_AlignSelf_Center' AlignSelf='DwsAlignItems.Center' Padding='4' BorderColor='DwsColor.Primary'>AlignSelf Center</DwsColumn>
<DwsColumn Name='RowColumnDemo_AlignSelf_End' AlignSelf='DwsAlignItems.FlexEnd' Padding='4' BorderColor='DwsColor.Primary'>AlignSelf FlexEnd</DwsColumn>
</DwsRow>Layout Grid turns the row into a CSS grid with one track per grid unit. Columns span tracks with ColSize (and the breakpoint sizes) and grid rows with RowSpan, so tiles of different heights fit into each other; RowHeight sets the smallest height of a grid row.
<DwsRow Name='RowColumnDemo_Grid_Dashboard' Layout='DwsRowLayout.Grid' RowHeight='72' Space='12'>
<DwsColumn Name='RowColumnDemo_Grid_A' ColSize='12' ColMd='6' RowSpan='2' Padding='8' BorderColor='DwsColor.Primary' BorderWidth='2'>A: ColMd 6, RowSpan 2</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_B' ColSize='12' ColMd='6' Padding='8' BorderColor='DwsColor.Secondary'>B: ColMd 6</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_C' ColSize='6' ColMd='3' Padding='8' BorderColor='DwsColor.Secondary'>C: ColMd 3</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_D' ColSize='6' ColMd='3' Padding='8' BorderColor='DwsColor.Secondary'>D: ColMd 3</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_E' ColSize='12' ColMd='8' Padding='8' BorderColor='DwsColor.Secondary'>E: ColMd 8</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_F' ColSize='12' ColMd='4' RowSpan='2' Padding='8' BorderColor='DwsColor.Primary' BorderWidth='2'>F: ColMd 4, RowSpan 2</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_G' ColSize='6' ColMd='4' Padding='8' BorderColor='DwsColor.Secondary'>G: ColMd 4</DwsColumn>
<DwsColumn Name='RowColumnDemo_Grid_H' ColSize='6' ColMd='4' Padding='8' BorderColor='DwsColor.Secondary'>H: ColMd 4</DwsColumn>
</DwsRow>Columns sets the number of grid units per line. Here it is 5, so five columns without a size fill a line of the grid layout.
<DwsRow Name='RowColumnDemo_Grid_Five' Layout='DwsRowLayout.Grid' Columns='5' Space='8'>
@foreach (int i in Enumerable.Range(1, 10))
{
<DwsColumn Name='@($"RowColumnDemo_Grid_Five{i}")' Padding='8' BorderColor='DwsColor.Secondary'>@i</DwsColumn>
}
</DwsRow>A column can hold a row of its own, which again has 12 grid units, its own gaps and its own column sizes; nothing is inherited from the outer row. Debug on the outer row also outlines the nested one. The nested columns follow the window's width; make the nested row Adaptive to size them by the row's own width instead (see Adaptive).
<DwsButton Name='RowColumnDemo_Nested_DebugToggle' Appearance='@(_nestedDebug ? DwsAppearance.Filled : DwsAppearance.Outline)' ButtonSize='DwsSize.Small' OnClick='() => _nestedDebug = !_nestedDebug'>Debug: @(_nestedDebug ? "on" : "off")</DwsButton>
<DwsRow Name='RowColumnDemo_Nested_Outer' Debug='_nestedDebug'>
<DwsColumn Name='RowColumnDemo_Nested_Main' ColSize='12' ColMd='8' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>
<strong>Main (ColMd 8)</strong>
<DwsRow Name='RowColumnDemo_Nested_Inner' Space='8' Class='mt-2'>
<DwsColumn Name='RowColumnDemo_Nested_Inner1' ColSize='12' ColSm='6' Padding='8' BorderColor='DwsColor.Primary' Class='pt-4'>Nested: ColSize 12, ColSm 6</DwsColumn>
<DwsColumn Name='RowColumnDemo_Nested_Inner2' ColSize='6' ColSm='3' Padding='8' BorderColor='DwsColor.Primary' Class='pt-4'>ColSm 3</DwsColumn>
<DwsColumn Name='RowColumnDemo_Nested_Inner3' ColSize='6' ColSm='3' Padding='8' BorderColor='DwsColor.Primary' Class='pt-4'>ColSm 3</DwsColumn>
</DwsRow>
</DwsColumn>
<DwsColumn Name='RowColumnDemo_Nested_Side' ColSize='12' ColMd='4' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Sidebar (ColMd 4)</DwsColumn>
</DwsRow>HideBelow hides a row or column below a breakpoint, HideFrom from a breakpoint up; together they show it in a range only. Resize the window: the columns tell at which widths they are visible. The last row is hidden below SM (576px).
<DwsRow Name='RowColumnDemo_Visibility_Row' Space='8'>
<DwsColumn Name='RowColumnDemo_Visibility_Small' HideFrom='DwsVisibilityBreakpoint.MD' Padding='8' BorderColor='DwsColor.Warning'>Below MD only (HideFrom MD)</DwsColumn>
<DwsColumn Name='RowColumnDemo_Visibility_Large' HideBelow='DwsVisibilityBreakpoint.MD' Padding='8' BorderColor='DwsColor.Success'>From MD up (HideBelow MD)</DwsColumn>
<DwsColumn Name='RowColumnDemo_Visibility_Range' HideBelow='DwsVisibilityBreakpoint.LG' HideFrom='DwsVisibilityBreakpoint.XL' Padding='8' BorderColor='DwsColor.Primary'>LG only (HideBelow LG, HideFrom XL)</DwsColumn>
<DwsColumn Name='RowColumnDemo_Visibility_Always' Padding='8' BorderColor='DwsColor.Secondary'>Always</DwsColumn>
</DwsRow>
<DwsRow Name='RowColumnDemo_Visibility_WholeRow' HideBelow='DwsVisibilityBreakpoint.SM' Padding='8' BorderColor='DwsColor.Secondary'>
<DwsColumn Name='RowColumnDemo_Visibility_WholeRowCol'>This whole row is hidden below SM.</DwsColumn>
</DwsRow>With Adaptive the columns' breakpoint sizes, offsets and visibility follow the width of the row instead of the window. Both rows below are the same markup: in the 280px wide sidebar the columns stack, in the wider area they sit side by side from SM (576px) of the row's own width. The row needs a width of its own, which a block-level row has.
<div class='d-flex flex-wrap gap-3'>
<div style='width: 280px; max-width: 100%;'>
<small class='d-block mb-1'>280px sidebar</small>
<DwsRow Name='RowColumnDemo_Adaptive_Narrow' Adaptive='true' Space='8' Debug='true'>
<DwsColumn Name='RowColumnDemo_Adaptive_Narrow1' ColSize='12' ColSm='6' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>First</DwsColumn>
<DwsColumn Name='RowColumnDemo_Adaptive_Narrow2' ColSize='12' ColSm='6' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Second</DwsColumn>
</DwsRow>
</div>
<div style='flex: 1 1 360px; min-width: 0;'>
<small class='d-block mb-1'>Wider area</small>
<DwsRow Name='RowColumnDemo_Adaptive_Wide' Adaptive='true' Space='8' Debug='true'>
<DwsColumn Name='RowColumnDemo_Adaptive_Wide1' ColSize='12' ColSm='6' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>First</DwsColumn>
<DwsColumn Name='RowColumnDemo_Adaptive_Wide2' ColSize='12' ColSm='6' Padding='8' BorderColor='DwsColor.Secondary' Class='pt-4'>Second</DwsColumn>
</DwsRow>
</div>
</div>BackgroundColor and BorderColor take theme colors, so rows and columns follow the active theme. A BorderColor or BorderWidth alone draws a solid border; BorderStyle picks another style and BorderRadius rounds the corners. Padding adds space inside a row or column.
<DwsRow Name='RowColumnDemo_Appearance_Row' BackgroundColor='DwsColor.Secondary' Padding='12' BorderRadius='8' Space='12'>
<DwsColumn Name='RowColumnDemo_Appearance_Primary' ColSize='6' ColMd='3' BackgroundColor='DwsColor.Primary' Padding='12' BorderRadius='4'>Primary</DwsColumn>
<DwsColumn Name='RowColumnDemo_Appearance_Success' ColSize='6' ColMd='3' BackgroundColor='DwsColor.Success' Padding='12' BorderRadius='4'>Success</DwsColumn>
<DwsColumn Name='RowColumnDemo_Appearance_Warning' ColSize='6' ColMd='3' BackgroundColor='DwsColor.Warning' Padding='12' BorderRadius='4'>Warning</DwsColumn>
<DwsColumn Name='RowColumnDemo_Appearance_Border' ColSize='6' ColMd='3' BorderColor='DwsColor.Accent' BorderWidth='2' BorderStyle='DwsBorderStyle.Dashed' Padding='12' BorderRadius='4'>Dashed border</DwsColumn>
</DwsRow>Overflow handles content that does not fit into a column, here one 90px high at most (MaxHeight): Visible lets it spill out, Hidden cuts it off, Auto and Scroll add scrollbars (Scroll always), ScrollX and ScrollY scroll one axis and cut the other, and Ellipsis keeps every line on one line and truncates it with …
A column with more text than fits into its height, and a word that is too wide for narrow columns: Donaudampfschifffahrtskapitän.
A column with more text than fits into its height, and a word that is too wide for narrow columns: Donaudampfschifffahrtskapitän.
A column with more text than fits into its height, and a word that is too wide for narrow columns: Donaudampfschifffahrtskapitän.
<DwsRow Name='RowColumnDemo_Overflow_Row' RowSpace='96'>
@foreach (DwsContentOverflow overflow in Enum.GetValues<DwsContentOverflow>())
{
<DwsColumn Name='@($"RowColumnDemo_Overflow_{overflow}")' ColSize='12' ColSm='6' ColLg='3' Overflow='overflow' MaxHeight='90' Padding='8' BorderColor='DwsColor.Secondary'>
<strong>@overflow</strong>
<DwsTypography Name='RowColumnDemo_OverflowText' Typography='DwsTypographyType.Paragraph' Class='mb-0' IgnorePermissionChecks='true' IgnorePermissionSelection='true'>A column with more text than fits into its height, and a word that is too wide for narrow columns: Donaudampfschifffahrtskapitän.</DwsTypography>
</DwsColumn>
}
</DwsRow>HtmlTag renders a row or column as another layout element, e.g. a ul row with li columns for a list laid out in a grid (the row removes the list markers and indent), or a section with article columns.
A column rendered as an article element.
Screen readers see the page structure.
<DwsRow Name='RowColumnDemo_Tag_List' HtmlTag='ul' Space='8'>
@foreach (int i in Enumerable.Range(1, 4))
{
<DwsColumn Name='@($"RowColumnDemo_Tag_Item{i}")' HtmlTag='li' ColSize='6' ColMd='3' Padding='8' BorderColor='DwsColor.Secondary'>List item @i</DwsColumn>
}
</DwsRow>
<DwsRow Name='RowColumnDemo_Tag_Section' HtmlTag='section'>
<DwsColumn Name='RowColumnDemo_Tag_Article1' HtmlTag='article' ColSize='12' ColMd='6' Padding='8' BorderColor='DwsColor.Secondary'>
<DwsTypography Name='RowColumnDemo_Heading' Typography='DwsTypographyType.Heading6'>Article 1</DwsTypography>
<DwsTypography Name='RowColumnDemo_Text' Typography='DwsTypographyType.Paragraph' Class='mb-0'>A column rendered as an article element.</DwsTypography>
</DwsColumn>
<DwsColumn Name='RowColumnDemo_Tag_Article2' HtmlTag='article' ColSize='12' ColMd='6' Padding='8' BorderColor='DwsColor.Secondary'>
<DwsTypography Name='RowColumnDemo_Heading02' Typography='DwsTypographyType.Heading6'>Article 2</DwsTypography>
<DwsTypography Name='RowColumnDemo_Text02' Typography='DwsTypographyType.Paragraph' Class='mb-0'>Screen readers see the page structure.</DwsTypography>
</DwsColumn>
</DwsRow>Tooltip shows a text when hovering a row or column, as the browser's native tooltip; a column's own tooltip wins over its row's.
<DwsRow Name='RowColumnDemo_Tooltip_Row' Tooltip="The row's tooltip" Padding='8' BorderColor='DwsColor.Secondary'>
@foreach (DwsTooltipPosition position in Enum.GetValues<DwsTooltipPosition>())
{
<DwsColumn Name='@($"RowColumnDemo_Tooltip_{position}")' ColSize='6' ColMd='3' Tooltip='@($"Tooltip, preferred side: {position}")' TooltipPosition='position' Padding='8' BorderColor='DwsColor.Primary'>Hover me (@position)</DwsColumn>
}
</DwsRow>| Name | Typ | Default | Description |
|---|---|---|---|
| ChildContent | RenderFragment? | null | The DwsColumn children. Columns must be direct children of the row. |
| HtmlTag | string | "div" | Element the row renders as: div, section, article, aside, nav, header, footer, main, form, fieldset, figure, ul, ol, li, menu, p, span, label or address. Anything else falls back to div and is logged as a warning. A ul or ol row removes the list markers and indent. |
| Layout | DwsRowLayout | DwsRowLayout.Flex | Flex: a wrapping flex row (like the Bootstrap grid) in which columns without a size share the free space of their line. Grid: a CSS grid with one track per grid unit, in which columns without a size take one track and a column can span several rows (RowSpan). |
| Columns | int | 12 | Grid units per line; column sizes and offsets are fractions of it. Smaller than 1 falls back to 12 with a warning. |
| Space | int? | null | Gap between the columns and between wrapped lines in pixels. Null keeps the default gutter of 24px. Negative values are ignored with a warning. |
| RowSpace | int? | null | Gap between wrapped lines (row-gap) in pixels; wins over Space and NoGutters there. |
| ColumnSpace | int? | null | Gap between the columns of a line (column-gap) in pixels; wins over Space and NoGutters there. |
| NoGutters | bool | false | Removes the gutters: the columns and lines touch. RowSpace and ColumnSpace still set their axis. |
| JustifyContent | DwsJustifyContent | DwsJustifyContent.FlexStart | Horizontal distribution of the columns of a line that do not fill it: FlexStart, FlexEnd, Center, SpaceBetween, SpaceAround, SpaceEvenly. Flex layout only; in the grid layout the tracks always fill the row. |
| AlignItems | DwsAlignItems | DwsAlignItems.Stretch | Vertical alignment of the columns within their line: Stretch (equally tall), FlexStart, FlexEnd, Center, Baseline. |
| AlignContent | DwsAlignContent | DwsAlignContent.Stretch | Distribution of the lines when the row is taller than they are, e.g. with a Height: Stretch, FlexStart, FlexEnd, Center, SpaceBetween, SpaceAround, SpaceEvenly. |
| Padding | int? | null | Inner padding in pixels. Negative values are ignored with a warning. |
| Margin | int? | null | Outer margin in pixels. Without it the row has no margin, also when it renders as ul, p or figure. |
| Wrap | DwsFlexWrap | DwsFlexWrap.Wrap | Flex layout only: NoWrap keeps all columns on one line (with sized columns and OverflowX Auto the row scrolls sideways), WrapReverse stacks wrapped lines upwards. In the grid layout it is ignored with a warning. |
| Overflow | DwsOverflow? | null | How content that does not fit into the row is handled, on both axes: Visible, Hidden, Clip, Scroll or Auto. Null keeps the CSS default (visible). |
| OverflowX | DwsOverflow? | null | Overflow on the horizontal axis only; wins over Overflow there. |
| OverflowY | DwsOverflow? | null | Overflow on the vertical axis only; wins over Overflow there. |
| AutoSize | bool | false | Sizes the columns without a size of their own at runtime: each is at least AutoSizeMinWidth wide and a line holds as many as fit. In the flex layout the columns of a line share its width; in the grid layout the row makes as many equal tracks as fit, so every line lines up. |
| AutoSizeMinWidth | int | 240 | Smallest width in pixels of a column that AutoSize sizes (never wider than the row). Smaller than 1 falls back to 240 with a warning. |
| RowHeight | int? | null | Grid layout only: the smallest height of each grid row in pixels, so columns that span several rows get a predictable height. Null sizes the rows by their content. Ignored with a warning in the flex layout. |
| Adaptive | bool | false | Applies the columns' breakpoint sizes, offsets and visibility at the width of the row instead of the viewport. The row becomes a CSS size container: it needs a width of its own (a block-level row has one), and it becomes the containing block of fixed-position content inside it, such as popovers. |
| HideBelow | DwsVisibilityBreakpoint? | null | Hides the row below this viewport breakpoint (SM 576px, MD 768px, LG 992px, XL 1200px, XXL 1400px). XS never hides. |
| HideFrom | DwsVisibilityBreakpoint? | null | Hides the row from this viewport breakpoint up; XS hides it at every width. With HideBelow it shows the row in a range only. |
| Width | int? | null | Width in pixels. Without it a row takes the full width of its parent. |
| MinWidth | int? | null | Minimum width in pixels. |
| MaxWidth | int? | null | Maximum width in pixels. |
| Height | int? | null | Height in pixels. |
| MinHeight | int? | null | Minimum height in pixels. |
| MaxHeight | int? | null | Maximum height in pixels. |
| BackgroundColor | DwsColor | DwsColor.Undefined | Theme color of the background, so it follows the active theme. |
| BorderColor | DwsColor | DwsColor.Undefined | Theme color of the border. On its own it draws a solid 1px border. |
| BorderWidth | int? | null | Border width in pixels. Draws a solid border when no BorderStyle is set. |
| BorderStyle | DwsBorderStyle | DwsBorderStyle.None | Border style (Solid, Dashed, Dotted, ...). None with a BorderColor or BorderWidth means solid. |
| BorderRadius | int? | null | Corner radius in pixels. |
| Tooltip | string | "" | Tooltip text shown when hovering the row, as the browser's native tooltip (title attribute). Empty shows none. |
| TooltipPosition | DwsTooltipPosition | DwsTooltipPosition.Top | Kept so existing markup still compiles: the tooltip is the browser's native title, which has no position. |
| Debug | bool | false | Outlines the row and its columns in red and labels every column with the size and offset parameters in effect at the current width (e.g. ColMd=6); the row's own label shows its Name, tag, layout and grid units. Applies to rows nested in its columns too, and logs the resolved layout once. |
| OnClickPropagation | bool | true | Whether a click bubbles on to the parent elements. Turn it off so a clickable row nested in a clickable column does not click the column as well. |
| Name | Typ | Description |
|---|---|---|
| OnClick | EventCallback<MouseEventArgs> | Raised on click, also for clicks on its columns unless they stop them. Not raised while disabled or in permission register mode, where a click selects the row instead. |
| OnDoubleClick | EventCallback<MouseEventArgs> | Raised on double click. Not raised while disabled or in permission register mode. |
| OnMouseEnter | EventCallback<MouseEventArgs> | Raised when the pointer enters the row. Not raised while disabled or in permission register mode. |
| OnMouseLeave | EventCallback<MouseEventArgs> | Raised when the pointer leaves the row. Not raised while disabled or in permission register mode. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The HTML ID attribute for the component. | |
| AdditionalAttributes | Dictionary<string, object> | Additional HTML attributes for the component's root element. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |
| Name | Typ | Default | Description |
|---|---|---|---|
| ChildContent | RenderFragment? | null | The content of the column, which can be another DwsRow. |
| HtmlTag | string | "div" | Element the column renders as, from the same list as DwsRow (e.g. li in a ul row). Anything else falls back to div and is logged as a warning. |
| ColSize | int? | null | Grid units the column spans at every width (1 to the row's Columns), unless a breakpoint size overrides it. Null: the column shares the free space of its line (flex layout) or takes one track (grid layout). Values outside the range are clamped with a warning. |
| ColSm | int? | null | Grid units from the SM breakpoint (576px) up. |
| ColMd | int? | null | Grid units from the MD breakpoint (768px) up. |
| ColLg | int? | null | Grid units from the LG breakpoint (992px) up. |
| ColXl | int? | null | Grid units from the XL breakpoint (1200px) up. |
| ColXxl | int? | null | Grid units from the XXL breakpoint (1400px) up. |
| Offset | int? | null | Empty grid units before the column at every width (0 to Columns - 1), unless a breakpoint offset overrides it. Values outside the range are clamped with a warning; in the grid layout the offset is also reduced so that it and the size fit into a line. |
| OffsetSm | int? | null | Offset from the SM breakpoint (576px) up; 0 removes a smaller breakpoint's offset. |
| OffsetMd | int? | null | Offset from the MD breakpoint (768px) up. |
| OffsetLg | int? | null | Offset from the LG breakpoint (992px) up. |
| OffsetXl | int? | null | Offset from the XL breakpoint (1200px) up. |
| OffsetXxl | int? | null | Offset from the XXL breakpoint (1400px) up. |
| Order | int? | null | Place of the column among its row's columns at every width, lower first (columns without an order are 0), unless a breakpoint order overrides it. Works in both layouts. It changes only what is shown, not the reading and tab order. |
| OrderSm | int? | null | Order from the SM breakpoint (576px) up. |
| OrderMd | int? | null | Order from the MD breakpoint (768px) up. |
| OrderLg | int? | null | Order from the LG breakpoint (992px) up. |
| OrderXl | int? | null | Order from the XL breakpoint (1200px) up. |
| OrderXxl | int? | null | Order from the XXL breakpoint (1400px) up. |
| RowSpan | int? | null | Grid layout only: the number of grid rows the column spans. Smaller than 1, or in the flex layout, it is ignored with a warning. |
| AlignSelf | DwsAlignItems? | null | Vertical alignment of this column within its line (Stretch, FlexStart, FlexEnd, Center, Baseline) instead of the row's AlignItems. |
| VerticalAlignment | DwsVerticalAlignment | DwsVerticalAlignment.None | Vertical alignment of the content inside the column: Top, Center or Bottom of its height. The column becomes a flex column for it; None leaves the content in normal flow. |
| HorizontalAlignment | DwsHorizontalAlignment | DwsHorizontalAlignment.None | Horizontal alignment of the content inside the column, child elements and text: Left, Center or Right. SpaceBetween, SpaceAround and SpaceEvenly are ignored with a warning. |
| Overflow | DwsContentOverflow | DwsContentOverflow.Visible | Content that does not fit: Visible spills out, Hidden cuts it off, Auto and Scroll add scrollbars (Scroll always), ScrollX and ScrollY scroll one axis and cut the other, Ellipsis keeps text on one line and truncates it with an ellipsis. Needs a size to overflow, e.g. MaxHeight. |
| Padding | int? | null | Inner padding in pixels. Negative values are ignored with a warning. |
| HideBelow | DwsVisibilityBreakpoint? | null | Hides the column below this breakpoint, of the viewport or, in an Adaptive row, of the row. XS never hides. |
| HideFrom | DwsVisibilityBreakpoint? | null | Hides the column from this breakpoint up; XS hides it at every width. |
| Height | int? | null | Height in pixels. |
| MinHeight | int? | null | Minimum height in pixels. |
| MaxHeight | int? | null | Maximum height in pixels; with Overflow the content beyond it is cut off or scrolls. |
| BackgroundColor | DwsColor | DwsColor.Undefined | Theme color of the background. The gaps between the columns stay free of it. |
| BorderColor | DwsColor | DwsColor.Undefined | Theme color of the border. On its own it draws a solid 1px border. |
| BorderWidth | int? | null | Border width in pixels. Draws a solid border when no BorderStyle is set. |
| BorderStyle | DwsBorderStyle | DwsBorderStyle.None | Border style (Solid, Dashed, Dotted, ...). None with a BorderColor or BorderWidth means solid. |
| BorderRadius | int? | null | Corner radius in pixels. |
| Tooltip | string | "" | Tooltip text shown when hovering the column, as the browser's native tooltip (title attribute); wins over the row's. Empty shows none. |
| TooltipPosition | DwsTooltipPosition | DwsTooltipPosition.Top | Kept so existing markup still compiles: the tooltip is the browser's native title, which has no position. |
| Debug | bool | false | Outlines this column in red and labels it with the size and offset parameters in effect at the current width. Debug on the row does this for all of its columns. |
| OnClickPropagation | bool | true | Whether a click bubbles on to the parent elements. Turn it off so a click on a clickable column does not also click its row. |
| Name | Typ | Description |
|---|---|---|
| OnClick | EventCallback<MouseEventArgs> | Raised on click. Not raised while disabled or in permission register mode, where a click selects the column instead. |
| OnDoubleClick | EventCallback<MouseEventArgs> | Raised on double click. Not raised while disabled or in permission register mode. |
| OnMouseEnter | EventCallback<MouseEventArgs> | Raised when the pointer enters the column. Not raised while disabled or in permission register mode. |
| OnMouseLeave | EventCallback<MouseEventArgs> | Raised when the pointer leaves the column. Not raised while disabled or in permission register mode. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Element | ElementReference | The associated web component. May be null if accessed before the component is rendered. | |
| ComponentGuid | Guid | Unique identifier for the component. | |
| TypeString | string | The name of the component type, obtained from reflection. | |
| Authorized_RegisterEnabled | bool | false | Indicates whether this component is enabled through a permission registry. |
| Authorized_RegisterSelected | bool | false | Indicates whether this component is selected in permission selection mode. |
| GetInitializedState | bool | false | Returns whether the component is initialized. |
| GetRenderModeState | DwsRenderMode | Returns the current render mode. | |
| GetComponentState | DwsComponentStateType | Returns the current component state. | |
| GetIsInteractiveState | bool | false | Returns whether the component is interactive. |
| GetIsPrerenderingState | bool | false | Returns whether the component is prerendering. |
| GetComponentLoadingState | bool | false | Returns whether the component is loading. |
| IsFormBusy | bool | false | Whether the DwsForm (or DwsFormBusyRegion) around the component is locked because its submit handler is running. The state itself is the cascaded FormBusyState (IDwsFormBusyState). |
| Name | Typ | Parameters | Description |
|---|---|---|---|
| DebugInfo | void | Logs debug information about the component. | |
| UpdateState | void | Updates the component's state and triggers StateHasChanged. | |
| UpdateStateAsync | Task | Asynchronously updates the component's state and triggers StateHasChanged. | |
| Dispose | void | Disposes the component and releases resources. | |
| FocusAsync | ValueTask | bool containedInScrollableList | Sets focus to the component's element. |
| Name | Typ | Default | Description |
|---|---|---|---|
| Name | string | Required unique identifier for the component within its container. | |
| Visible | bool | true | Determines if the component is visible in the UI. |
| Disabled | bool | false | Disables the form control, ensuring it doesn't participate in form submission. |
| ComponentNameSpace | string | The namespace for permission-based access control. | |
| PermissionKey | string? | null | A stable key that takes the place of Name in the generated permission namespace (Page.PermissionKey): the stored permission survives a rename, and components that share a key share one permission entry. Null: keyed by Name. Read once, when the component registers; an explicit ComponentNameSpace wins. |
| Class | string | Optional CSS class names. | |
| Style | string | Optional in-line styles. | |
| Tag | object | An optional user-defined object to store any additional data with the component. | |
| BackReference | DwsReference | A reference to the enclosing component. | |
| ID | string | The HTML ID attribute for the component. | |
| AdditionalAttributes | Dictionary<string, object> | Additional HTML attributes for the component's root element. | |
| IgnorePermissionChecks | bool | false | Bypasses all permission checks for this component. |
| IgnorePermissionSelection | bool | false | Ignore permission selection mode for this component. |
| IgnoreFormBusy | bool | false | Takes the component out of the submit lock of the DwsForm (or DwsFormBusyRegion) around it: IsFormBusy stays false for it. |
| Name | Typ | Description |
|---|---|---|
| OnInitializedCallbackStarted | EventCallback | Callback when OnInitialized starts. |
| OnInitializedCallback | EventCallback | Callback during OnInitialized. |
| OnInitializedCallbackCompleted | EventCallback | Callback when OnInitialized completes. |
| OnInitializedAsyncCallbackStarted | EventCallback | Callback when OnInitializedAsync starts. |
| OnInitializedAsyncCallback | EventCallback | Callback during OnInitializedAsync. |
| OnInitializedAsyncCallbackCompleted | EventCallback | Callback when OnInitializedAsync completes. |
| OnIsComponentLoadingChanged | EventCallback<bool> | Callback when IsComponentLoading changes. |
| OnCurrentRenderModeChanged | EventCallback<DwsRenderMode> | Callback when CurrentRenderMode changes. |
| OnComponentStateChanged | EventCallback<DwsComponentStateType> | Callback when ComponentState changes. |