Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Common web page input elements, often with bootstrap scaffolding.
Synopsis
- data Input a = Input {
- inputVal :: a
- inputLabel :: Maybe ByteString
- inputId :: ByteString
- inputType :: InputType
- data InputType
- = Slider [Attr]
- | SliderV [Attr]
- | TextBox
- | TextBox'
- | TextArea Int
- | ColorPicker
- | ChooseFile
- | Dropdown [ByteString]
- | DropdownMultiple [ByteString] Char
- | DropdownSum [ByteString]
- | Datalist [ByteString] ByteString
- | Checkbox Bool
- | Toggle Bool (Maybe ByteString)
- | Button
- inputToHtml :: Show a => Input a -> Markup
Documentation
something that might exist on a web page and be a front-end input to computations.
Input | |
|
Instances
Generic (Input a) Source # | |
Show a => Show (Input a) Source # | |
Eq a => Eq (Input a) Source # | |
type Rep (Input a) Source # | |
Defined in Web.Rep.Html.Input type Rep (Input a) = D1 ('MetaData "Input" "Web.Rep.Html.Input" "web-rep-0.11.0.0-92kLpliQOQ3ATLZWb07Yam" 'False) (C1 ('MetaCons "Input" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inputVal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "inputLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ByteString))) :*: (S1 ('MetaSel ('Just "inputId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "inputType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputType)))) |
Various types of web page inputs, encapsulating practical bootstrap class functionality