monomer-1.5.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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Widgets.Singles.TextField

Description

Input field for single line Text. Allows setting the maximum number of characters and a replacement character for password.

textField shortTextLens

With configuration options:

textField_ shortTextLens [maxLength 100, selectOnFocus_ False]
Synopsis

Configuration

data TextFieldCfg s e Source #

Configuration options for textField:

Instances

Instances details
Monoid (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Semigroup (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

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

Default (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

def :: TextFieldCfg s e #

CmbMaxLength (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

maxLength :: Int -> TextFieldCfg s e Source #

CmbReadOnly (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbResizeOnChange (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbSelectOnFocus (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbCaretMs (TextFieldCfg s e) Millisecond Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbCaretWidth (TextFieldCfg s e) Double Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbPlaceholder (TextFieldCfg s e) Text Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbValidInput (TextFieldCfg s e) s Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

CmbValidInputV (TextFieldCfg s e) e Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

validInputV :: (Bool -> e) -> TextFieldCfg s e Source #

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

Defined in Monomer.Widgets.Singles.TextField

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

textFieldDisplayChar :: Char -> TextFieldCfg s e Source #

Replacement character to show instead of real text. Useful for passwords.

Constructors

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

Creates a text field using the given lens.

textField_ :: WidgetEvent e => ALens' s Text -> [TextFieldCfg s e] -> WidgetNode s e Source #

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

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

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

textFieldV_ :: WidgetEvent e => Text -> (Text -> e) -> [TextFieldCfg s e] -> WidgetNode s e Source #

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

textFieldD_ :: WidgetEvent e => WidgetData s Text -> [TextFieldCfg s e] -> WidgetNode s e Source #

Creates a text field providing a WidgetData instance and config.