ant-design-blazor/components/menu/MenuDivider.razor

22 lines
420 B
C#
Raw Normal View History

@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();
}
}