monomer-1.6.0.1: 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 HaskellSafe-Inferred
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
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 #

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 #

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

CmbMaxLength (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

maxLength :: Int -> TextAreaCfg s e Source #

CmbMaxLines (TextAreaCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

maxLines :: 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 => 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 => 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 => CmbOnFocus (TextAreaCfg s e) e Path Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextArea

Methods

onFocus :: (Path -> 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 #

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 #

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 Source #

Arguments

:: WidgetEvent e 
=> ALens' s Text

The lens into the model.

-> WidgetNode s e

The created text area.

Creates a text area using the given lens.

textArea_ Source #

Arguments

:: WidgetEvent e 
=> ALens' s Text

The lens into the model.

-> [TextAreaCfg s e]

The config options.

-> WidgetNode s e

The created text area.

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

textAreaV Source #

Arguments

:: WidgetEvent e 
=> Text

The current value.

-> (Text -> e)

The event to raise on change.

-> WidgetNode s e

The created text area.

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

textAreaV_ Source #

Arguments

:: WidgetEvent e 
=> Text

The current value.

-> (Text -> e)

The event to raise on change.

-> [TextAreaCfg s e]

The config options.

-> WidgetNode s e

The created text area.

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

textAreaD_ Source #

Arguments

:: WidgetEvent e 
=> WidgetData s Text

The WidgetData to retrieve the value from.

-> [TextAreaCfg s e]

The config options.

-> WidgetNode s e

The created text area.

Creates a text area providing a WidgetData instance and config.