Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public RadioButton SetLabel(string text, LabelPosition position)
 {
     Label = text;
     LabelPosition = position ?? LabelPosition.Right;
     return this;
 }
Пример #4
0
 public Checkbox SetLabel(string text, LabelPosition position)
 {
     Label = text;
     LabelPosition = position ?? LabelPosition.Right;
     return this;
 }