| Copyright | (C) 2016-2026 David M. Johnson |
|---|---|
| License | BSD3-style (see the file LICENSE) |
| Maintainer | David M. Johnson <code@dmj.io> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Miso.Native.X.Element.Input.Property
Description
Synopsis
- androidFullscreenMode_ :: Bool -> Attribute model action
- confirmType_ :: ConfirmType -> Attribute model action
- disabled_ :: Bool -> Attribute model action
- inputFilter_ :: MisoString -> Attribute model action
- iosAutoCorrect_ :: Bool -> Attribute model action
- iosSpellCheck_ :: Bool -> Attribute model action
- maxlength_ :: Int -> Attribute model action
- placeholder_ :: MisoString -> Attribute model action
- readonly_ :: Bool -> Attribute model action
- showSoftInputOnFocus_ :: Bool -> Attribute model action
- type_ :: InputType -> Attribute model action
- data InputType
- data ConfirmType
Property
androidFullscreenMode_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#android-fullscreen-mode
Whether to enter the full-screen input mode when in landscape screen.
androidFullscreenMode_ False
Default Value: True
confirmType_ :: ConfirmType -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#confirm-type
Specifies the confirm button type.
confirmType_ ConfirmDone
Default Value: ConfirmSend
disabled_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#disabled
Controls whether interaction is enabled.
disabled_ True
Default Value: False
inputFilter_ :: MisoString -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#input-filter
Filters the input content in the form of a regular expression.
inputFilter_ "[0-9]"
iosAutoCorrect_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#ios-auto-correct
Enables auto-correction on iOS.
iosAutoCorrect_ False
Default Value: True
iosSpellCheck_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#ios-spell-check
Enables spell-checking on iOS.
iosSpellCheck_ False
Default Value: True
maxlength_ :: Int -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#maxlength
Maximum input length allowed.
maxlength_ 32
Default Value: 140
placeholder_ :: MisoString -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#placeholder
Placeholder text display.
placeholder_ "Enter your name"
readonly_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#readonly
Makes the input read-only.
readonly_ True
Default Value: False
showSoftInputOnFocus_ :: Bool -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#show-soft-input-on-focus
Show soft input keyboard while focused.
showSoftInputOnFocus_ False
Default Value: True
type_ :: InputType -> Attribute model action Source #
https://lynxjs.org/api/elements/built-in/input.html#type
Input content type.
type_ InputPassword
Default Value: InputText
Types
The content type of an <input>, used by type_.
Constructors
| InputNumber | |
| InputText | |
| InputDigit | |
| InputPassword | |
| InputTel | |
| InputEmail |
data ConfirmType Source #
The confirm button type of an <input>, used by confirmType_.
Constructors
| ConfirmSearch | |
| ConfirmSend | |
| ConfirmGo | |
| ConfirmDone | |
| ConfirmNext |
Instances
| Show ConfirmType Source # | |
Defined in Miso.Native.X.Element.Input.Property Methods showsPrec :: Int -> ConfirmType -> ShowS # show :: ConfirmType -> String # showList :: [ConfirmType] -> ShowS # | |
| Eq ConfirmType Source # | |
Defined in Miso.Native.X.Element.Input.Property | |
| ToJSON ConfirmType Source # | |
Defined in Miso.Native.X.Element.Input.Property | |