mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-28 01:45:20 +03:00
shows onBlur behaviour in the styleguide
This commit is contained in:
parent
dc6319ecc4
commit
23aec1f14a
@ -118,6 +118,22 @@ example parentMessage state =
|
||||
, placeholder = "Placeholder"
|
||||
, showLabel = state.showLabel == Checkbox.Selected
|
||||
}
|
||||
, TextArea.writing
|
||||
{ value = Maybe.withDefault "" <| Dict.get 4 state.textValues
|
||||
, autofocus = False
|
||||
, onInput = InputGiven 4
|
||||
, onBlur = Just (InputGiven 4 "Neener neener Blur happened")
|
||||
, isInError = state.isInError == Checkbox.Selected
|
||||
, label = "TextArea.writing onBlur demonstration"
|
||||
, height =
|
||||
if state.autoResize == Checkbox.Selected then
|
||||
TextArea.AutoResize TextArea.DefaultHeight
|
||||
|
||||
else
|
||||
TextArea.Fixed
|
||||
, placeholder = "Placeholder"
|
||||
, showLabel = state.showLabel == Checkbox.Selected
|
||||
}
|
||||
]
|
||||
|> List.map (Html.map parentMessage)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user