lenards/elm-ui-patternfly/4.0.2

PF6.Radio

PF6 Radio component

Radio buttons allow users to select one option from a set.

See: https://www.patternfly.org/components/radio

Definition

type Radio msg

Opaque Radio type

Constructor

{ id : String
, onChange : Bool -> msg
}
-> Radio msg

Construct a Radio button

radio
    { id = "option-a"
    , onChange = OptionASelected
    }

Content modifiers

withLabel : String -> Radio msg -> Radio msg

Set the radio label

withDescription : String -> Radio msg -> Radio msg

Set a description below the label

withBody : Element msg -> Radio msg -> Radio msg

Set body content below the radio

State modifiers

withChecked : Bool -> Radio msg -> Radio msg

Set the checked state

withDisabled : Radio msg -> Radio msg

Disable the radio button

Rendering

toMarkup : Theme -> Radio msg -> Element msg

Render the Radio as an Element msg