monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.TextArea

Description

Input field for multi line Text.

Configs:

  • maxLength: the maximum length of input text.
  • maxLines: the maximum number of lines of input text.
  • acceptTab: whether to handle tab and convert it to spaces (cancelling change of focus), or keep default behaviour and lose focus.
  • selectOnFocus: Whether all input should be selected when focus is received.
  • onFocus: event to raise when focus is received.
  • onFocusReq: WidgetRequest to generate when focus is received.
  • onBlur: event to raise when focus is lost.
  • onBlurReq: WidgetRequest to generate when focus is lost.
  • onChange: event to raise when the value changes.
  • onChangeReq: WidgetRequest to generate when the value changes.
Synopsis

Documentation

textArea :: WidgetEvent e => ALens' s Text -> WidgetNode s e Source #

Creates a text area using the given lens.

textArea_ :: WidgetEvent e => ALens' s Text -> [TextAreaCfg s e] -> WidgetNode s e Source #

Creates a text area using the given lens. Accepts config.

textAreaV :: WidgetEvent e => Text -> (Text -> e) -> WidgetNode s e Source #

Creates a text area using the given value and onChange event handler.

textAreaV_ :: WidgetEvent e => Text -> (Text -> e) -> [TextAreaCfg s e] -> WidgetNode s e Source #

Creates a text area using the given value and onChange event handler. Accepts config.