public BootstrapFormGroup() { Classes.Add("form-group"); Label = new BootstrapLabel(); Input = new BootstrapFormInput(); Children.Add(Label); Children.Add(Input); }
public BootstrapInputGroup(string beforeAddOn, string name, string afterAddOn = "") { Classes.Add("input-group"); BeforeAddOn = new HtmlDiv(); BeforeAddOn.InnerText = beforeAddOn; Children.Add(BeforeAddOn); Input = new BootstrapFormInput(); Input.Name = Input.Id = name; Children.Add(Input); if (!string.IsNullOrEmpty(afterAddOn)) { AfterAddOn = new HtmlDiv(); AfterAddOn.InnerText = afterAddOn; Children.Add(AfterAddOn); } }