Example #1
0
 public IncHorizontalControl(IncLabelControl label, TInput input, IncControlBase validation)
 {
     Label      = label;
     Input      = input;
     Validation = validation;
     HelpBlock  = new IncHelpBlockControl();
     AddClass("control-group");
 }
 public IncHorizontalControl(IncLabelControl label, TInput input, IncControlBase validation)
 {
     Label      = label;
     Input      = input;
     Validation = validation;
     HelpBlock  = new IncHelpBlockControl();
     Control    = new IncDivControl();
 }
 public IncHorizontalControl(IncLabelControl label, TInput input, IncControlBase validation)
 {
     Label = label;
     Label.AddClass(IncodingHtmlHelper.BootstrapVersion == BootstrapOfVersion.v3 ? "control-label col-md-3" : "control-label");
     Input = input;
     if (IncodingHtmlHelper.BootstrapVersion == BootstrapOfVersion.v3)
     {
         Input.AddClass("form-control");
     }
     Validation = validation;
     HelpBlock  = new IncHelpBlockControl();
     AddClass(IncodingHtmlHelper.BootstrapVersion == BootstrapOfVersion.v3 ? "form-group col-md-12" : "control-group");
 }