<@U31EMAHFU> This isn't a tornadofx example, but y...
# tornadofx
c
@borboss This isn't a tornadofx example, but you can implement the same thing with a JavaFX-oriented ViewModel layer and a UI-agnostic, POJO Model layer. I regularly have a JAR of domain objects that I want to leverage across multiple views (JavaFX, web services, command line interface, Swing in one case) and there isn't a one-to-one relationship between what you put in a View and the Model. The support in TornadoFX for this design is to invoke model changing functionality through distinct methods and to provide model updates through the TornadoFX Event Bus. https://fxdocs.github.io/docs/index.html#_model_change_with_mvvm
👍 2