Remove redundant DList and other + add AttrsWithContentBuilder

This commit is contained in:
2022-05-19 12:13:13 +06:00
parent 9b992cbda0
commit 276eaddcac
4 changed files with 19 additions and 57 deletions

View File

@@ -0,0 +1,15 @@
package dev.inmo.jsuikit.utils
import org.jetbrains.compose.web.dom.ContentBuilder
import org.w3c.dom.Element
typealias AttrsWithContentBuilder<T> = Pair<Attrs<T>, ContentBuilder<T>>
inline val <T : Element> AttrsWithContentBuilder<T>.attrs
get() = first
inline val <T : Element> AttrsWithContentBuilder<T>.attributesBuilderContext
get() = attrs.builder
inline val <T : Element> AttrsWithContentBuilder<T>.builder
get() = second