<@U14ECM2KV> Much shorter! If you are satisfied, ...
# tornadofx
c
@ron Much shorter! If you are satisfied, send me a pull request and I'll integrate. Your version is behind bekwam/toodomvcFX because I put a few changes in involving the controller and model relationship. In my latest version 1. The actions of the ToggleButton are replaced with a binding When which passes a Predicate around. 2. I pushed the handling of the 2 lists (items and viewableItems) into a model component TodoListModel. (This is so the front-most components don't have to manipulate the 2 lists.) Basically, the UI interacts with the model with add() and remove() and binds to viewableItems() for the ListView and uses items() for the total left label. See model/TodoItemModel.kt.