ant-design-blazor/components/slider/SliderMark.cs
Henry.zhang 826df9d055 feat: new demo for switch, radio, slider and inputnumber (#155)
* feat: new demo for switch, radio, slider and inputnumber

* fix: remove some blank in demo doc api section

* fix: format the code in demo

* fix: checkbox and switch

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-05-28 16:56:52 +08:00

26 lines
577 B
C#

using Microsoft.AspNetCore.Components;
using System.Collections.Generic;
namespace AntBlazor
{
public class SliderMark
{
public double Key { get; }
public RenderFragment Value { get; }
public string Style { get; }
public SliderMark(double key, string value)
{
Key = key;
Value = (b) => b.AddContent(0, value);
}
public SliderMark(double key, RenderFragment value, string style)
{
Key = key;
Value = value;
Style = style;
}
}
}