예제 #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;
 }