edvin
10/15/2016, 5:19 PMMainView.kt
I make the ListView utilize the `TodoItemFragment`: lvItems.cellFragment(TodoItemFragment::class)
edvin
10/15/2016, 5:20 PMedvin
10/15/2016, 5:21 PMmodel.rebindOnChange(itemProperty) { source = item }
edvin
10/15/2016, 5:21 PMedvin
10/15/2016, 5:23 PMedvin
10/15/2016, 5:23 PMedvin
10/15/2016, 5:25 PMautocommit
feature here. This is done so that when you click the completed check box, the item is written back into the source TodoItem so that the count label can be updated. The same goes for when you edit it in the text field.edvin
10/15/2016, 5:26 PMedvin
10/15/2016, 5:45 PMedvin
10/15/2016, 5:51 PMedvin
10/15/2016, 6:04 PMcarlw
10/15/2016, 6:20 PMedvin
10/15/2016, 6:21 PMmodel.completed
property for the strikethrough css class, I think you bound against the UI element earlier. I guess both will work though.edvin
10/15/2016, 7:52 PMcarlw
10/15/2016, 7:52 PMcarlw
10/15/2016, 7:52 PMcarlw
10/15/2016, 7:52 PMedvin
10/15/2016, 7:53 PMedvin
10/15/2016, 7:57 PMcarlw
10/15/2016, 7:59 PMedvin
10/15/2016, 7:59 PMcarlw
10/15/2016, 7:59 PMedvin
10/15/2016, 8:00 PMcarlw
10/15/2016, 8:12 PMcarlw
10/15/2016, 8:13 PMcarlw
10/15/2016, 8:13 PMcarlw
10/15/2016, 8:13 PM