kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Kotlin DSL for HTML

Results 110 kotlinx.html issues
Sort by recently updated
recently updated
newest added

I get that you are trying to force valid html, but that defeats the ability to create html fragments. Consider the use case: * I have a table of the...

It would be useful to support SVG attributes like: ```kotlin public var SVG.viewBox: String get() = stringAttribute[this, "viewBox"] set(viewBox) { stringAttribute[this, "viewBox"] = viewBox } public var SVG.width: String get()...

I'm trying to use the approach suggested in to reset a form after successful submission. I'm having trouble with `attributes["hx-on::after-request"]`: only one colon appears in the rendered HTML. I'm using...

Path isn't supported. Something like @HtmlTagMarker inline fun FlowContent.path(classes : String? = null, crossinline block : PATH.() -> Unit = {}) : Unit = PATH( attributesMapOf("class", classes), consumer).visit(block) @Suppress("unused") open...

The function `TagConsumer.finalize()` clashes with the JVM function `Object.finalize()` which has been deprecated and slated for removal. As such, the function should be renamed to remove this clash and avoid...

Would be helpful to have a @Preview anotation and IDE plugin like Compose to render the Html for testing porposes.

I have a very big layout and compilation fails with: Caused by: java.io.FileNotFoundException: /projectl/build/classes/kotlin/main/com/example/OrderViewKt.class (No such file or directory) exception: java.lang.RuntimeException: Error generating class file com/example//OrderViewKt.class (compiled from [/kotlin/adminPortal/src/main/kotlin/gt/kemik/adminPortal/orders/orderView.kt]): Method...

While browsing this repositories wiki (https://github.com/Kotlin/kotlinx.html/wiki/Style-and-script-tags) I noticed a new section linking to a third party library (https://github.com/allangomes/kotlinwind.css). Which led me to investigate whether I can simply edit the wiki....

The kotlin team are starting to push devs to use the kotlin-wrappers. kotlin-browser moves all of the browser api to the web.dom package. For js, support append/create etc on web.dom.HTMLElement.

kotlinjs mangles attributes. To prevent this, it's required to put a @JsName annotation on any attributes that should be preserved. Tag.namespace is used to determine whether to call document.createElementNS or...