Module

Nonbili.DOM

Package
purescript-nonbili-dom
Repository
nonbili/purescript-nonbili-dom

#copyToClipboard Source

copyToClipboard :: String -> Effect Unit

Copy a string to clipbard.

#fitInputWidth Source

fitInputWidth :: HTMLElement -> Number -> Effect Unit

Fit <input> width to its content width without showing scrollbar.

#fitTextareaHeight Source

fitTextareaHeight :: HTMLElement -> Number -> Effect Unit

Fit <textarea> height to content height without showing scrollbar.

#innerHTML Source

innerHTML :: Element -> Effect String

Get inner HTML of an element.

#setInnerHTML Source

setInnerHTML :: Element -> String -> Effect Unit

Set inner HTML of an element.

#innerText Source

innerText :: HTMLElement -> Effect String

Get rendered text content of an element.

#setInnerText Source

setInnerText :: HTMLElement -> String -> Effect Unit

Set rendered text content of an element.

Modules
Nonbili.DOM