monomer-1.0.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 HaskellNone
LanguageHaskell2010

Monomer.Widgets.Singles.TextField

Description

Input field for single line Text.

Synopsis

Configuration

data TextFieldCfg s e Source #

Configuration options for textField:

Instances

Instances details
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 #

Monoid (TextFieldCfg s e) Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

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 #

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) Int Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

caretMs :: Int -> TextFieldCfg s e Source #

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

CmbValidInputV (TextFieldCfg s e) e Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

Methods

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

CmbValidInput (TextFieldCfg s e) s Source # 
Instance details

Defined in Monomer.Widgets.Singles.TextField

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

Defined in Monomer.Widgets.Singles.TextField

Methods

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

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

Defined in Monomer.Widgets.Singles.TextField

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 #

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.