NoRedInk/noredink-ui/6.29.0

NOTE: the latest version is 35.9.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 6.29.0 found (15 same-name repos checked); no cached copy. Use another version.

Details

Nri.Ui.TextInput.V4

type alias Model value msg =
{ label : String
, isInError : Bool
, onInput : value -> msg
, onBlur : Maybe msg
, placeholder : String
, value : value
, autofocus : Bool
, showLabel : Bool
, type_ : InputType value
}
view : Model value msg -> Html msg
writing : Model value msg -> Html msg
generateId : String -> String

Gives you the DOM element id that will be used by a TextInput.view with the given label. This is for use when you need the DOM element id for use in javascript (such as trigger an event to focus a particular text input)

Input types

number : InputType (Maybe Int)

An input that allows number entry

text : InputType String

An input that allows text entry