| 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.Textarea.Method
Description
Synopsis
- focus :: MisoString -> action -> (MisoString -> action) -> Effect context props model action
- blur :: MisoString -> action -> (MisoString -> action) -> Effect context props model action
- setValue :: MisoString -> MisoString -> action -> (MisoString -> action) -> Effect context props model action
- setSelectionRange :: MisoString -> Int -> Int -> action -> (MisoString -> action) -> Effect context props model action
- getValue :: MisoString -> (TextareaValue -> action) -> (MisoString -> action) -> Effect context props model action
- data TextareaValue = TextareaValue {
- value :: MisoString
- selectionStart :: Int
- selectionEnd :: Int
- isComposing :: Bool
Methods
focus :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/textarea.html#focus
Requests focus for the selected <textarea>.
blur :: MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/textarea.html#blur
Releases focus for the selected <textarea>.
setValue :: MisoString -> MisoString -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/textarea.html#setvalue
Sets the input content of the selected <textarea>.
setSelectionRange :: MisoString -> Int -> Int -> action -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/textarea.html#setselectionrange
Sets the selection range of the selected <textarea>.
getValue :: MisoString -> (TextareaValue -> action) -> (MisoString -> action) -> Effect context props model action Source #
https://lynxjs.org/api/elements/built-in/textarea.html#getvalue
Retrieves the current value (and selection) of the selected <textarea>.
Types
data TextareaValue Source #
Result of calling getValue.
Constructors
| TextareaValue | |
Fields
| |
Instances
| Show TextareaValue Source # | |
Defined in Miso.Native.X.Element.Textarea.Method Methods showsPrec :: Int -> TextareaValue -> ShowS # show :: TextareaValue -> String # showList :: [TextareaValue] -> ShowS # | |
| Eq TextareaValue Source # | |
Defined in Miso.Native.X.Element.Textarea.Method Methods (==) :: TextareaValue -> TextareaValue -> Bool # (/=) :: TextareaValue -> TextareaValue -> Bool # | |
| FromJSVal TextareaValue Source # | |
Defined in Miso.Native.X.Element.Textarea.Method | |