public static MvcHtmlString UxCheckbox(this HtmlHelper htmlHelper, string label, string group, string value = "", bool selected = false, LabelPosition position = null, CheckColor color = CheckColor.Blue, bool disabled = false, string clientId = null) { var check = new Checkbox(label, group, value, selected, position, color, disabled, clientId); return htmlHelper.RenderUxControl(check); }
public RadioButton(string label, string group, string value = "", bool selected = false, LabelPosition position = null, CheckColor color = CheckColor.Blue, bool disabled = false, string clientId = null) : base("_RadioButton",clientId) { SetGroup(group) .SetSelected(selected) .SetLabel(label, position) .SetColor(color) .SetValue(value) .SetDisabled(disabled); }
public RadioButton SetLabel(string text, LabelPosition position) { Label = text; LabelPosition = position ?? LabelPosition.Right; return this; }
public Checkbox SetLabel(string text, LabelPosition position) { Label = text; LabelPosition = position ?? LabelPosition.Right; return this; }