ant-design-blazor/components/core/Helpers/ClassBuilderRuleClass.cs

18 lines
359 B
C#

namespace AntBlazor
{
public class ClassBuilderRuleClass<T> : ClassBuilderRule<T>
{
public string ClassName { get; set; }
public ClassBuilderRuleClass(string className)
{
ClassName = className;
}
public override string GetClass(T data)
{
return ClassName;
}
}
}