miso
Copyright(C) 2016-2026 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Native.X.Element.Textarea.Method

Contents

Description

 
Synopsis

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