elm-athlete/athlete/4.0.0

NOTE: the latest version is 7.0.0

BodyBuilder.Elements.Form

type alias CommonParams =
{ label : String
, placeholder : Maybe String
, error : Maybe String
}
type alias FullInputType msg =
{ value : InputType msg
, commonParams : CommonParams
}
type alias InputCheckboxContent msg =
{ label : String
, msg : Bool -> msg
, checked : Bool
}
type alias InputNumberContent msg =
{ label : String
, value : Int
, msg : Int -> msg
}
type alias InputTextContent msg =
{ label : String
, placeholder : String
, value : String
, msg : String -> msg
}
It seems that InputType(..) does not have any docs. The module's documentation names it in an @docs line, but the package does not expose it.
buildCheckbox : CommonParams -> Bool -> (Bool -> msg) -> NodeWithStyle msg
CommonParams
-> Maybe MyDate
-> (DateMsg -> msg)
-> NodeWithStyle msg
buildInput : FullInputType msg -> NodeWithStyle msg
buildInputFile : CommonParams -> String -> msg -> NodeWithStyle msg
buildInputNumber : CommonParams -> Int -> (Int -> msg) -> NodeWithStyle msg
buildInputPassword : CommonParams -> String -> (String -> msg) -> NodeWithStyle msg
buildInputText : CommonParams -> String -> (String -> msg) -> NodeWithStyle msg
buildInputEmail : CommonParams -> String -> (String -> msg) -> NodeWithStyle msg
CommonParams
-> List { a | active : Bool, id : String, value : String }
-> (String -> msg)
-> NodeWithStyle msg
buildTextArea : CommonParams -> String -> (String -> msg) -> NodeWithStyle msg
checkBoxSurround : String -> Bool -> (Bool -> msg) -> NodeWithStyle msg
errorMessage : String -> NodeWithStyle msg
generateOptions : String -> List String -> List Option
inputField : CommonParams -> InputType msg -> FullInputType msg
inputLabel : String -> CommonParams
inputLabelPlaceholder : String -> String -> CommonParams
inputLabelPlaceholderWithError : String -> String -> Maybe String -> CommonParams
inputLabelWithError : String -> Maybe String -> CommonParams
inputSurround : Maybe String -> String -> NodeWithStyle msg -> NodeWithStyle msg
Modifier
(BoxContainer
{ a
| block : Maybe (List ( Modifiers BlockDetails, StyleSelector ))
}
)
( Modifiers
(BoxContainer
{ a
| block : Maybe (List ( Modifiers BlockDetails, StyleSelector ))
, fromStringInput : String -> String
, onInputEvent : Maybe (String -> msg)
, placeholder : Maybe String
, value : Maybe String
}
)
-> NodeWithStyle msg
)
-> CommonParams
-> String
-> (String -> msg)
-> NodeWithStyle msg