Exemplo n.º 1
0
 private string configureButton()
 {
     //Implementa o BSInput quando o tipo for submit
     if (ButtonType == eButtonType.SubmitButton)
     {
         Input = new BSInput()
         {
             Type = "submit", Label = this.Title, Columns = this.Columns, Parent = this.Parent, ExtendedClass = ButtonStyle
         };
         return(Input.GetHTML());
     }
     else
     {
         return(new StringBuilder().AppendFormat("<{0} type='{1}' class='{2}' {3}>{4}{5}</{0}>", ButtonType == eButtonType.Button ? "button" : ButtonType == eButtonType.SubmitButton ? "input" : "a", ButtonType, configureClass(), ExtendedAtributes(), Title, Action == eButtonAction.Dropdown ? "<span class='caret'></span>" : "").ToString());
     }
 }
Exemplo n.º 2
0
 public void AddInput(BSInput control)
 {
     AddInputToContainer(control);
 }