Manage focus changes through the list of sibilings.
String
The only value needed to be stored is the unique identifier used to set focus.
List item types. Html link or button.
Internal module messages.
update : Msg -> FocusList -> Platform.Cmd.Cmd Msg
Standard update function.
view : FocusList -> List (Item msg) -> List (Html msg)
Renders the list.
trigger : (Msg -> msg) -> Html.Attribute msg
Html.Attribute that causes the selection of the first elment in the list.
onSelect : (String -> msg) -> FocusList -> Html.Attribute msg
Catches the selection.
onKeyDown : String -> (Msg -> msg) -> Html.Attribute msg
Html.Attribute to handle navigation keys.
div [ onKeyDown FocusListMsg ]
[ FocusList.view list children
]