icerockdev / moko-widgets

Multiplatform UI DSL with screen management in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
384 stars 31 forks source link

How call ViewModel fun inside UnitItem class? #272

Closed Diy2210 closed 4 years ago

Diy2210 commented 4 years ago

Hi, I need call ViewModel fun inside UnitItem class, how its work?

ViewModel class: Снимок экрана 2020-07-29 в 12 21 29

UnitItems, need call fun on button press: Снимок экрана 2020-07-29 в 12 21 55