Easily extend form input controls by adding text and buttons.
import Bootstrap.Form.InputGroup as InputGroup
import Bootstrap.Form.Input as Input
import Bootstrap.Button as Button
InputGroup.config
( InputGroup.text [] )
|> InputGroup.large
|> InputGroup.predecessors
[ InputGroup.span [] [ text "Stuff" ] ]
|> InputGroup.successors
[ InputGroup.button [] [ text "DoIt!"] ]
|> InputGroup.viewCreate initial view configuration for an input group.
input - The input for the input groupSpecify a list of add-ons to display before the input.
addons List of add-onsconfig View configuration for Input group (so far)Specify a list of add-ons to display after the input.
addons List of add-onsconfig View configuration for Input group (so far)Create an input add-on with type="text"
Create a button add-on.
options List of button optionschildren LIst of child elementsCreate a simple span add-on. Great for simple texts or font icons
attributes - List of attributeschildren - List of child elementsOpaque representation of the view configuration for an input group.
Opaque representation of an input element.
Opaque representation of an input-group add-on element.
Create an input add-on with type="password"
Create an input add-on with type="datetime-local"
Create an input add-on with type="date"
Create an input add-on with type="month"
Create an input add-on with type="time"
Create an input add-on with type="week"
Create an input add-on with type="number"
Create an input add-on with type="email"
Create an input add-on with type="url"
Create an input add-on with type="search"
Create an input add-on with type="tel"
Make all controls in an input group large
Make all controls in an input group small
When you need to customize the input group container, use this function to provide customization attributes.
Create the view representation for an Input group based on a ´configuration`