commonMain.io.nacular.doodle.dom.HtmlFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of browser Show documentation
Show all versions of browser Show documentation
A pure Kotlin, UI framework for the Web and Desktop
package io.nacular.doodle.dom
/**
* Created by Nicholas Eddy on 10/24/17.
*/
internal interface HtmlFactory {
val root: HTMLElement
fun create( ): T
fun create(tag: String): T
fun createText (text : String ): Text
fun createImage(source: String ): HTMLImageElement
fun createOrUse(tag : String, possible: HTMLElement?): HTMLElement
fun createInput (): HTMLInputElement
fun createButton(): HTMLButtonElement
}