ant-design-blazor/components/form/FormItem.razor
James Yeung d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00

22 lines
872 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
@using AntDesign.Internal;
<Row Class="@ClassMapper.Class" Style="@Style" Id="@Id">
@if (!string.IsNullOrEmpty(Label))
{
<AntDesign.Col @attributes="GetLabelColAttributes()" Class=@($"{_prefixCls}-label")>
<label class=@(Required ? $"{_prefixCls}-required" : _labelCls)> @(Label)</label>
</AntDesign.Col>
}
<AntDesign.Col @attributes="GetWrapperColAttributes()" Class=@($"{_prefixCls}-control")>
<div class=@($"{_prefixCls}-control-input")>
<div class=@($"{_prefixCls}-control-input-content")>
<CascadingValue Value="this" Name="FormItem" TValue="IFormItem" IsFixed="@true">
@ChildContent
</CascadingValue>
</div>
</div>
@_formValidationMessages
</AntDesign.Col>
</Row>