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 a button add-on.
options List of button optionschildren LIst of child elementsCreate a dropdown add-on.
For details see the Bootstrap.Dropdown module.
Create a split dropdown add-on.
For details see the Bootstrap.Dropdown module.
Create 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="datetime-local"
Create the view representation for an Input group based on a Config