https://kotlinlang.org logo
#javascript
Title
# javascript
a

Alexander Weickmann

08/22/2022, 10:48 AM
Hi all, any way to create a custom html tag element with the new kotlin-react-dom instead of the legacy? This used to work:
Copy code
inline fun ChildrenBuilder.auiDropdownMenu(block: RDOMBuilder<AUI_DROPDOWN_MENU>.() -> Unit): Unit = tag(block) {
    AUI_DROPDOWN_MENU(mapOf(), it)
}
class AUI_DROPDOWN_MENU(
    initialAttributes: Map<String, String>,
    override val consumer: TagConsumer<*>
) : HTMLTag("aui-dropdown-menu", consumer, initialAttributes, null, false, false),
    CommonAttributeGroupFacadeFlowInteractivePhrasingContent
but now I want to migrate this code and cannot find out how to do it
a

andylamax

08/22/2022, 11:46 AM
@turansky
t

turansky

08/22/2022, 12:52 PM
Copy code
val AuiDropdownMenu = IntrinsicType("aui-dropdown-menu")
🔥 2
a

Alexander Weickmann

08/22/2022, 2:22 PM
wow, that was fast. thx for the help. and also good to see that this is now so much easier
😜 1
7 Views