mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2024-12-22 08:37:24 +00:00
add composable annotations to close functions
This commit is contained in:
parent
b4a0ff6ece
commit
c337dd2b2d
@ -1,5 +1,6 @@
|
|||||||
package dev.inmo.jsuikit.elements
|
package dev.inmo.jsuikit.elements
|
||||||
|
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
import dev.inmo.jsuikit.modifiers.UIKitClose
|
import dev.inmo.jsuikit.modifiers.UIKitClose
|
||||||
import dev.inmo.jsuikit.modifiers.include
|
import dev.inmo.jsuikit.modifiers.include
|
||||||
import dev.inmo.jsuikit.utils.Attrs
|
import dev.inmo.jsuikit.utils.Attrs
|
||||||
@ -10,6 +11,7 @@ import org.w3c.dom.HTMLAnchorElement
|
|||||||
import org.w3c.dom.HTMLButtonElement
|
import org.w3c.dom.HTMLButtonElement
|
||||||
|
|
||||||
object Close {
|
object Close {
|
||||||
|
@Composable
|
||||||
fun drawAsLink(
|
fun drawAsLink(
|
||||||
href: String = "#",
|
href: String = "#",
|
||||||
attrs: Attrs<HTMLAnchorElement> = Attrs.empty(),
|
attrs: Attrs<HTMLAnchorElement> = Attrs.empty(),
|
||||||
@ -23,6 +25,7 @@ object Close {
|
|||||||
contentBuilder
|
contentBuilder
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@Composable
|
||||||
fun drawAsButton(
|
fun drawAsButton(
|
||||||
attrs: Attrs<HTMLButtonElement> = Attrs.empty(),
|
attrs: Attrs<HTMLButtonElement> = Attrs.empty(),
|
||||||
contentBuilder: ContentBuilder<HTMLButtonElement> = {}
|
contentBuilder: ContentBuilder<HTMLButtonElement> = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user