add Toggle builder

This commit is contained in:
2022-05-29 09:43:23 +06:00
parent 38819eba21
commit 767f5291a8
3 changed files with 29 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ sealed class UIKitToggle(
class Custom internal constructor(otherAttrs: Map<String, String>) : UIKitToggle(otherAttrs = otherAttrs)
companion object {
companion object : UIKitToggle(otherAttrs = mapOf("uk-toggle" to "")) {
operator fun invoke(
target: String? = null,
mode: Mode? = null,