lue-bird/elm-state-interface/1.0.0

NOTE: the latest version is 2.0.4

Web.Clipboard

Helpers for clipboard interactions as part of an Interface

request : Interface String

An Interface for reading the textual contents of the system clipboard.

Note: uses navigator.clipboard.readText()

replaceBy : String -> Interface state_

An Interface for setting the textual contents of the system clipboard.

Note: uses navigator.clipboard.writeText

Note: To listen for copy, cut and paste events, use Web.Dom.listenTo, see