Boyong
08/16/2018, 1:44 PMcarlw
08/16/2018, 1:46 PMBoyong
08/16/2018, 1:46 PMRuckus
08/16/2018, 2:16 PMRuckus
08/16/2018, 2:17 PMRuckus
08/16/2018, 2:18 PMcarlw
08/16/2018, 2:18 PMcarlw
08/16/2018, 5:39 PMcarlw
08/17/2018, 11:33 AMcarlw
08/17/2018, 11:39 AMBoyong
08/18/2018, 11:42 AMBoyong
08/18/2018, 11:44 AMedvin
08/19/2018, 7:31 AMPerson
as a data class, with two immutable members in the constructor. The generated toString
function of a data class includes these two, but ignores the observable properties you added to the body of the class. So the observable properties updated as they should, but of course the immutable members can't be changed, so the toString stays the same. By removing the data
keyword and also the val
keyword in front of each constructor parameter, the app behaves as you expected 🙂edvin
08/19/2018, 7:33 AMPerson
class with a toString
function to show that it's working. I didn't add the getter/setter delegates. I did fiddle with the idgen
property though 😁edvin
08/19/2018, 7:33 AMedvin
08/19/2018, 7:34 AMedvin
08/19/2018, 7:34 AMedvin
08/19/2018, 7:34 AMedvin
08/19/2018, 7:36 AMMainView
also had the old syntax, so I'm posting the new syntax in case new users sees the example:edvin
08/19/2018, 7:36 AMedvin
08/19/2018, 7:37 AMvbox
but it might be needed as the UI evolves of course)edvin
08/19/2018, 7:38 AMedvin
08/19/2018, 7:39 AMedvin
08/19/2018, 8:09 AMcarlw
08/19/2018, 10:40 AMedvin
08/19/2018, 3:27 PMedvin
08/19/2018, 3:28 PMcarlw
08/19/2018, 3:42 PMseiv
08/20/2018, 8:34 AMSiebelsTim
08/20/2018, 8:39 AM