edvin
05/08/2017, 2:47 PMcarlw
05/08/2017, 3:28 PMcarlw
05/08/2017, 3:29 PMcarlw
05/08/2017, 3:29 PMkastork
05/08/2017, 3:58 PMkastork
05/08/2017, 3:59 PMSimpleBooleanProperty(item.bar)
edvin
05/08/2017, 4:06 PMedvin
05/08/2017, 4:08 PMif (item == null) SimpleBooleanProperty() else SimpleBooleanProperty(item!!.bar)
edvin
05/08/2017, 4:08 PMSimpleBooleanProperty(item?.bar ?: false)
edvin
05/08/2017, 4:09 PMedvin
05/08/2017, 4:09 PMedvin
05/08/2017, 4:10 PMedvin
05/08/2017, 4:10 PMcommand
in the above example?edvin
05/08/2017, 4:10 PMcommand
that is globally available. It would cause confusion.edvin
05/08/2017, 4:11 PMbind
or assign
perhaps. Or change the syntax, so you'd do:edvin
05/08/2017, 4:12 PMedvin
05/08/2017, 4:12 PMcarlw
05/08/2017, 4:13 PMkastork
05/08/2017, 4:23 PMbutton("Say Hello") {
command = helloCommand {
param=myvar
}
}
?Ruckus
05/08/2017, 4:24 PMbutton("Say Hello") { ctrl.helloCommand with nameProperty }
As it is, bind
is used elsewhere for properties, but in a different way that could be confusing. You could go more specific with something like assignCommand(ctrl.helloCommand, nameProperty)
, but that's longer to type.Ruckus
05/08/2017, 4:26 PMthis
inside looks weird to me)edvin
05/08/2017, 4:54 PMedvin
05/08/2017, 4:54 PMedvin
05/08/2017, 4:58 PMedvin
05/08/2017, 4:59 PMedvin
05/08/2017, 5:00 PM