Skip to content

Commit ef95539

Browse files
internal: Add helper for creating textarea elements
1 parent b54f541 commit ef95539

File tree

1 file changed

+2
-0
lines changed
  • heartbeat_monitor/src/jsMain/kotlin/heartbeatmonitor/util

1 file changed

+2
-0
lines changed

heartbeat_monitor/src/jsMain/kotlin/heartbeatmonitor/util/Element.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import org.w3c.dom.HTMLLinkElement
99
import org.w3c.dom.HTMLOptionElement
1010
import org.w3c.dom.HTMLSelectElement
1111
import org.w3c.dom.HTMLSpanElement
12+
import org.w3c.dom.HTMLTextAreaElement
1213
import org.w3c.dom.css.CSSStyleDeclaration
1314

1415
fun Document.createDivElement() = this.createElement("div").unsafeCast<HTMLDivElement>()
@@ -19,6 +20,7 @@ fun Document.createOptionElement() = this.createElement("option").unsafeCast<HTM
1920
fun Document.createLinkElement() = this.createElement("link").unsafeCast<HTMLLinkElement>()
2021
fun Document.createLabelElement() = this.createElement("label").unsafeCast<HTMLLabelElement>()
2122
fun Document.createInputElement() = this.createElement("input").unsafeCast<HTMLInputElement>()
23+
fun Document.createTextAreaElement() = this.createElement("textarea").unsafeCast<HTMLTextAreaElement>()
2224

2325
var CSSStyleDeclaration.gap: String
2426
get() = this.getPropertyValue("gap")

0 commit comments

Comments
 (0)