Robert Jaros
08/09/2025, 9:13 AMRobert Jaros
08/09/2025, 9:14 AMthrowIrLinkageError("Function 'width' can not be called: No function found for symbol 'dev.kilua.html.style/CssStyle.width|width(dev.kilua.html.CssSize?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){}[0]'");
Robert Jaros
08/09/2025, 9:15 AMRobert Jaros
08/09/2025, 9:18 AMRobert Jaros
08/09/2025, 9:19 AMRobert Jaros
08/09/2025, 10:35 AMbuttonRef("test").onClick {
console.log("Button clicked!")
}
(buttoRef()
returns an object of type TagEvents
, and onClick
is a @Composable
method of TagEvents
.)Robert Jaros
08/09/2025, 10:36 AMthrowIrLinkageError("Function 'onClick' can not be called: No function found for symbol 'dev.kilua.html/Button.onClick|onClick(kotlin.Function1<web.mouse.MouseEvent,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){}[0]'");
}
Robert Jaros
08/09/2025, 10:37 AMval wrapper: @Composable TagEvents.() -> Unit = {
onClick {
console.log("Button clicked!")
}
}
buttonRef("test").wrapper()
Robert Jaros
08/09/2025, 11:57 AMjw
08/09/2025, 12:31 PMRobert Jaros
08/09/2025, 1:06 PM