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
- markupInput :: (a -> ByteString) -> Input a -> Markup
- class ToByteString a where
- toByteString :: a -> ByteString
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.12.1.0-mljk32nWcoKJWZerP610X" '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
Instances
markupInput :: (a -> ByteString) -> Input a -> Markup Source #
class ToByteString a where Source #
Conversion to a ByteString
Nothing
toByteString :: a -> ByteString Source #
Convert a value to a strict ByteString
default toByteString :: Show a => a -> ByteString Source #
Instances
ToByteString ByteString Source # | |
Defined in Web.Rep.Html.Input toByteString :: ByteString -> ByteString Source # | |
ToByteString Text Source # | |
Defined in Web.Rep.Html.Input toByteString :: Text -> ByteString Source # | |
ToByteString Integer Source # | |
Defined in Web.Rep.Html.Input toByteString :: Integer -> ByteString Source # | |
ToByteString Bool Source # | |
Defined in Web.Rep.Html.Input toByteString :: Bool -> ByteString Source # | |
ToByteString Double Source # | |
Defined in Web.Rep.Html.Input toByteString :: Double -> ByteString Source # | |
ToByteString Float Source # | |
Defined in Web.Rep.Html.Input toByteString :: Float -> ByteString Source # | |
ToByteString Int Source # | |
Defined in Web.Rep.Html.Input toByteString :: Int -> ByteString Source # |