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.Base.InputField

Description

Base single line text editing field. Extensible for handling specific textual representations of other types, such as numbers and dates. It is not meant for direct use, but to create custom widgets using it.

See NumericField, DateField and TimeField.

Synopsis

Documentation

data InputFieldCfg s e a Source #

Configuration options for an input field. These options are not directly exposed to users; each derived widget should expose its own options.

Constructors

InputFieldCfg 

Fields

data InputFieldState a Source #

Current state of the input field. Provided to some event handlers.

Constructors

InputFieldState 

Fields

Instances

Instances details
Eq a => Eq (InputFieldState a) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Base.InputField

Show a => Show (InputFieldState a) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Base.InputField

Generic (InputFieldState a) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Base.InputField

Associated Types

type Rep (InputFieldState a) :: Type -> Type #

type Rep (InputFieldState a) Source # 
Instance details

Defined in Monomer.Widgets.Singles.Base.InputField

inputField_ :: (InputFieldValue a, WidgetEvent e) => WidgetType -> InputFieldCfg s e a -> WidgetNode s e Source #

Creates an instance of an input field, with customizations in config.