ant-design-blazor/components/menu/MenuDivider.razor
Andrzej Bakun ea46422738 feat(module: menu): Add Menu divider (#1017)
* feat(module:menudivider): new component

* docs(module:dropdown): dropdown with tooltip and menudivider

* docs(module:menu): menudivider for horizontal demo

* feat(module:menudivider): remove unnecessary method
2021-01-22 08:59:05 +08:00

22 lines
420 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<li Class="@ClassMapper.Class"></li>
@code {
[CascadingParameter]
public Menu RootMenu { get; set; }
private void setClass()
{
ClassMapper.Clear()
.Add($"{RootMenu.PrefixCls}-item-divider");
}
protected override void OnInitialized()
{
setClass();
base.OnInitialized();
}
}