NoRedInk/noredink-ui/16.6.0

NOTE: the latest version is 35.9.3

Nri.Ui.TextArea.V4

Upgrading to V4

  • Adds field for onBlur

The Nri styleguide-specified textarea with overlapping label

Creating New Versions

When upgrading this module, we need to make sure to also include a new custom element, or else autosizing will break! This means doing the following:

  1. Creating a new module in lib/TextArea
  2. Requiring that module in lib/index.js
view : Model msg -> Html msg
writing : Model msg -> Html msg

Used for Writing Cycles

contentCreation : Model msg -> Html msg

Used for Content Creation

type Height
= DefaultHeight
| SingleLine

For specifying the actual height.

= Fixed
| AutoResize Height

Control whether to auto-expand the height.

type alias Model msg =
{ value : String
, autofocus : Bool
, onInput : String -> msg
, onBlur : Maybe msg
, isInError : Bool
, height : HeightBehavior
, placeholder : String
, label : String
, showLabel : Bool
}
generateId : String -> String