NoRedInk/noredink-ui/6.31.0

NOTE: the latest version is 35.9.3

Nri.Ui.Html.V3

For all utils involving HTML. New version of Nri.Ui.Html.Extra.

role : String -> Attribute msg

Convenience for defining role attributes, e.g. <div role="tabpanel">

onEsc : a -> a -> Attribute a
onEnter : a -> Attribute a
onKeyUp : Options -> (Int -> Maybe a) -> Attribute a

Convert a keycode into a message on keyup

onEnterAndSpace : msg -> Attribute msg

"Buttons" should trigger on Enter and on Space.

textFromList : List String -> Html msg

Takes a list of strings, joins them with a space and returns it as a Html.text. textFromList ["Hello", "World"] == text [ String.join " " ["Hello", "World" ] ]

oxfordifyWithHtml : String -> String -> List (Html msg) -> List (Html msg)
nbsp : Html msg

Workaround for Html.text "&nbsp;" not working in elm.

type alias Options =
{ preventDefault : Bool
, stopPropagation : Bool
}
defaultOptions : Options