single : { checked : Maybe Basics.Bool, onChecked : Basics.Bool -> msg, id : String, label : Accessibility.Html Basics.Never, value : String } -> Config msg
Crée une checkbox
Checkbox.single
{ checked = Just True
, onChecked = ToggleSelection
, id = "id"
, label = "label"
, value = "value"
}
|> Checkbox.viewSingle
viewSingle : Config msg -> Accessibility.Html msg
Affiche une checkbox
singleWithDisabled : Basics.Bool -> Config msg -> Config msg
singleWithError : Maybe String -> Config msg -> Config msg
singleWithHint : Maybe String -> Config msg -> Config msg
singleWithSuccess : Maybe String -> Config msg -> Config msg
singleWithExtraAttrs : List (Accessibility.Attribute Basics.Never) -> Config msg -> Config msg
singleWithInputAttrs : List (Accessibility.Attribute Basics.Never) -> Config msg -> Config msg
group : { id : String, legend : Accessibility.Html msg, options : List data, checked : List data, onChecked : data -> Basics.Bool -> msg, toId : data -> String, toLabel : data -> Accessibility.Html Basics.Never, toValue : data -> String } -> GroupConfig msg data
Crée un groupe de case à cocher
Checkbox.group
{ id = "group-id"
, legend = text "Légende du groupe"
, options = options
, checked = checkedValues
, onChecked = ClickOption
, toId = optionToId
, toLabel = optionToLabel >> text
, toValue = optionToValue
}
|> Checkbox.inline
|> Checkbox.viewGroup
viewGroup : GroupConfig msg data -> Accessibility.Html msg
Affiche le groupe
inline : GroupConfig msg data -> GroupConfig msg data
stacked : GroupConfig msg data -> GroupConfig msg data
groupWithDisabled : Basics.Bool -> GroupConfig msg data -> GroupConfig msg data
groupWithError : Maybe String -> GroupConfig msg data -> GroupConfig msg data
groupWithExtraAttrs : List (Accessibility.Attribute Basics.Never) -> GroupConfig msg data -> GroupConfig msg data
groupWithHint : Maybe String -> GroupConfig msg data -> GroupConfig msg data
groupWithSuccess : Maybe String -> GroupConfig msg data -> GroupConfig msg data
groupWithToDisabled : (data -> Basics.Bool) -> GroupConfig msg data -> GroupConfig msg data
groupWithToError : (data -> Maybe String) -> GroupConfig msg data -> GroupConfig msg data
groupWithToHint : (data -> Maybe String) -> GroupConfig msg data -> GroupConfig msg data
groupWithToSuccess : (data -> Maybe String) -> GroupConfig msg data -> GroupConfig msg data
( MandatoryConfig msg
, OptionalConfig
)
( MandatoryGroupConfig msg data
, OptionalGroupConfig data
)