additionalOnClick

fun Style.additionalOnClick(@IdRes key: Int, onClick: (ClickEvent) -> Unit): Style

Adds an additional click listener identified by key that fires alongside any primary handler installed via onClick or by the underlying component's CommonProps.clickHandler. Multiple additional listeners with distinct keys can coexist on the same view and all fire on click in insertion order.

Adding another Style.onClick { … } to the same style chain after this additionalOnClick clears all additional listeners registered before it — matching the "last onClick wins" semantics of plain Style.onClick. Note: this is about chain composition at render time, not about runtime click dispatch.

key must be a stable R.id value — using the same key for two registrations on the same view throws. Namespace keys per call-site (declare them in your module's ids.xml).

Setting this property will cause the Component to be represented as a View at mount time if it wasn't going to already.