monomer-1.4.1.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 multiline Text. Allows setting the maximum number of characters, lines and whether the tab key should trigger focus change.

textArea longTextLens

With configuration options:

textArea_ longTextLens [maxLength 1000, selectOnFocus]
Synopsis

Configuration

data TextAreaCfg s e Source #

Configuration options for textArea:

Instances

Instances details
Semigroup (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

(<>) :: TextAreaCfg s e -> TextAreaCfg s e -> TextAreaCfg s e #

sconcat :: NonEmpty (TextAreaCfg s e) -> TextAreaCfg s e #

stimes :: Integral b => b -> TextAreaCfg s e -> TextAreaCfg s e #

Monoid (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

mempty :: TextAreaCfg s e #

mappend :: TextAreaCfg s e -> TextAreaCfg s e -> TextAreaCfg s e #

mconcat :: [TextAreaCfg s e] -> TextAreaCfg s e #

Default (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

def :: TextAreaCfg s e #

CmbAcceptTab (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

CmbMaxLines (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

maxLines :: Int -> TextAreaCfg s e Source #

CmbMaxLength (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

maxLength :: Int -> TextAreaCfg s e Source #

CmbReadOnly (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

CmbSelectOnFocus (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

CmbCaretMs (TextAreaCfg s e) Millisecond Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

CmbCaretWidth (TextAreaCfg s e) Double Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

WidgetEvent e => CmbOnChange (TextAreaCfg s e) Text e Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onChange :: (Text -> e) -> TextAreaCfg s e Source #

WidgetEvent e => CmbOnBlur (TextAreaCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onBlur :: (Path -> e) -> TextAreaCfg s e Source #

WidgetEvent e => CmbOnFocus (TextAreaCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onFocus :: (Path -> e) -> TextAreaCfg s e Source #

CmbOnChangeReq (TextAreaCfg s e) s e Text Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onChangeReq :: (Text -> WidgetRequest s e) -> TextAreaCfg s e Source #

CmbOnBlurReq (TextAreaCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onBlurReq :: (Path -> WidgetRequest s e) -> TextAreaCfg s e Source #

CmbOnFocusReq (TextAreaCfg s e) s e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onFocusReq :: (Path -> WidgetRequest s e) -> TextAreaCfg s e Source #

Constructors

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.

textAreaD_ :: WidgetEvent e => WidgetData s Text -> [TextAreaCfg s e] -> WidgetNode s e Source #

Creates a text area providing a WidgetData instance and config.