Interface IInputgroup

All Superinterfaces:
IAnyGroup<IInputgroup>, IChildable<IInputgroup,IChildrenOfInputgroup>, IComponent<IInputgroup>, IHtmlBasedComponent<IInputgroup>, IXulElement<IInputgroup>

Immutable Inputgroup component

An inputgroup.

Inspired by Bootstrap’s Input group and Button group. By prepending or appending some components to the input component, you can merge them like a new form-input component.

Example

 @RichletMapping("/example")
 public IComponent example() {
     return IVlayout.of(
         IInputgroup.of(ILabel.of("@"), ITextbox.DEFAULT),
         IInputgroup.of(ITextbox.DEFAULT.withPlaceholder("Recipient's username"), ILabel.of("@example.com")),
         IInputgroup.of(ILabel.of("$"), ITextbox.DEFAULT, ILabel.of(".00")),
         IInputgroup.of(ILabel.of("With textarea"), ITextbox.ofCols(30).withRows(5).withMultiline(true))
     );
 }
 
Author:
katherine
See Also:
  • Inputgroup
  • Field Details

    • DEFAULT

      static final IInputgroup DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details