Grid
Examples
Grid API#
Row API#
Property | Description | Type | Default Value |
---|---|---|---|
ChildContent | ParameterContent of the row, generally contains Col elements. |
RenderFragment | -- |
Type | ParameterCurrently unused | String | -- |
Align | ParameterVertical alignment for the flex layout: 'top' | 'middle' | 'bottom' | String | -- |
Justify | ParameterHotizontal alignment for the flex layout: 'start' | 'end' | 'center' | 'space-around' | 'space-between' | String | -- |
Wrap | ParameterAllow the row's content to wrap or not | Boolean | true |
Gutter | ParameterSpacing between grids, could be a number or a dictionary like { xs: 8, sm: 16, md: 24 } , an array to make horizontal and vertical spacing work at the same time [horizontal, vertical] |
OneOf<Int32, Dictionary<String, Int32>, ValueTuple<Int32, Int32>, ValueTuple<Dictionary<String, Int32>, Int32>, ValueTuple<Int32, Dictionary<String, Int32>>, ValueTuple<Dictionary<String, Int32>, Dictionary<String, Int32>>> | -- |
OnBreakpoint | ParameterCallback executed when a screen size breakpoint is triggered | EventCallback<BreakpointType> | -- |
DefaultBreakpoint | ParameterDefault screen size breakpoint. Used to set gutter during pre-rendering | BreakpointType? | -- |
Id | ParameterID for the component's HTML | String | Uniquely Generated ID |
Class | ParameterSpecifies one or more class names for an DOM element. | String | -- |
Style | ParameterSpecifies an inline style for a DOM element. | String | -- |
RefBack | ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current . |
ForwardRef | -- |
Col API#
Property | Description | Type | Default Value |
---|---|---|---|
ChildContent | ParameterContent of column | RenderFragment | -- |
Flex | ParameterUse flex mode or not. Will not use flex mode if null. | OneOf<String, Int32> | -- |
Span | ParameterWidth of Col | OneOf<String, Int32> | -- |
Order | ParameterOrder of Col, used in flex mode | OneOf<String, Int32> | -- |
Offset | ParameterThe number of Cols to offset Col from the left | OneOf<String, Int32> | -- |
Push | ParameterThe number of Cols to push the Col to the right | OneOf<String, Int32> | -- |
Pull | ParameterThe number of Cols to pull the Col to the left | OneOf<String, Int32> | -- |
Xs | Parameter<576px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Sm | Parameter≥576px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Md | Parameter≥768px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Lg | Parameter≥992px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Xl | Parameter≥1200px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Xxl | Parameter≥1600px column of grid | OneOf<Int32, EmbeddedProperty> | -- |
Id | ParameterID for the component's HTML | String | Uniquely Generated ID |
Class | ParameterSpecifies one or more class names for an DOM element. | String | -- |
Style | ParameterSpecifies an inline style for a DOM element. | String | -- |
RefBack | ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current . |
ForwardRef | -- |
EmbeddedProperty API#
Property | Description | Type | Default Value |
---|---|---|---|
Span | Width of Col | OneOf<String, Int32> | -- |
Pull | The number of Cols to pull the Col to the left | OneOf<String, Int32> | -- |
Push | The number of Cols to push the Col to the right | OneOf<String, Int32> | -- |
Offset | The number of Cols to offset Col from the left | OneOf<String, Int32> | -- |
Order | Order of Col, used in flex mode | OneOf<String, Int32> | -- |