group : { id : String, legend : Accessibility.Html msg, options : List data, current : Maybe data, onChecked : data -> msg, toId : data -> String, toLabel : data -> Accessibility.Html Basics.Never, toValue : data -> String } -> GroupConfig msg data
Crée un groupe de boutons radio
Radio.group
{ id = "group-id"
, legend = text "Légende du groupe"
, options = options
, current = Just option
, onChecked = ClickOption
, toId = optionToId
, toLabel = optionToLabel >> text
, toValue = optionToValue
}
|> Radio.withError formErrors
|> Radio.inline
|> Radio.view
view : GroupConfig msg data -> Accessibility.Html msg
Affiche un groupe de boutons radio
inline : GroupConfig msg data -> GroupConfig msg data
stacked : GroupConfig msg data -> GroupConfig msg data
viewRich : (data -> ( String, Maybe Dimensions )) -> GroupConfig msg data -> Accessibility.Html msg
Affiche un groupe de boutons radio illustrés
withDisabled : Basics.Bool -> GroupConfig msg data -> GroupConfig msg data
withDisabledOption : (data -> Basics.Bool) -> GroupConfig msg data -> GroupConfig msg data
withError : Maybe String -> GroupConfig msg data -> GroupConfig msg data
withExtraAttrs : List (Accessibility.Attribute Basics.Never) -> GroupConfig msg data -> GroupConfig msg data
withHint : Maybe (data -> Accessibility.Html msg) -> GroupConfig msg data -> GroupConfig msg data
withLegendAttrs : List (Accessibility.Attribute Basics.Never) -> GroupConfig msg data -> GroupConfig msg data
withLegendExtra : Maybe (Accessibility.Html msg) -> GroupConfig msg data -> GroupConfig msg data
withSuccess : Maybe String -> GroupConfig msg data -> GroupConfig msg data
( MandatoryConfig msg data
, OptionalConfig msg data
)