ant-design-blazor/components/select/internal/SelectOptionGroup.razor.cs
ElDiddi 41077bc2fb refactor(module: select): completely new (#800)
* select-rewritten

select-rewritten

* modul: select - update 1

* select-update2

* select-update3

* select-update 4

* feat: append label tag & auto tokenization

* fix: conflict in drpdown demo

Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-27 13:13:26 +08:00

25 lines
664 B
C#

using Microsoft.AspNetCore.Components;
namespace AntDesign.Select.Internal
{
public partial class SelectOptionGroup<TItemValue, TItem>
{
private const string ClassNamePrefix = "ant-select-item-group";
[CascadingParameter] internal Select<TItemValue, TItem> SelectParent { get; set; }
string _oldGroupName = string.Empty;
protected override void OnInitialized()
{
SetClassMap();
base.OnInitialized();
}
protected void SetClassMap()
{
ClassMapper.Clear()
.Add("ant-select-item")
.Add(ClassNamePrefix);
}
}
}