nimakro
05/09/2017, 7:13 PMcarlw
05/09/2017, 7:21 PMnimakro
05/09/2017, 7:22 PMonAction
😆😜edvin
05/09/2017, 7:22 PMbutton("Click me").action { doSomething() }
.edvin
05/09/2017, 7:22 PMonAction
, it's super cheap to add @nimakro 🙂edvin
05/09/2017, 7:23 PMnimakro
05/09/2017, 7:23 PMedvin
05/09/2017, 7:23 PMprintln("prop $toggleTestProp.value")
edvin
05/09/2017, 7:23 PMprintln("prop ${toggleTestProp.value}")
, mustn't it?nimakro
05/09/2017, 7:26 PM>
to much val toggleTestProp = SimpleObjectProperty <ToggleTestEnum>>()
carlw
05/09/2017, 7:28 PMcarlw
05/09/2017, 7:28 PMnimakro
05/09/2017, 7:47 PMtoString
on the enum since the visual representation is done by the graphic. To prevent the value.toString()
I am doing this `togglebutton("", value = it) is ther a better wayedvin
05/09/2017, 7:59 PMtogglebutton(value = it)
, so you don't assign anything to the text?nimakro
05/09/2017, 8:01 PMgraphic
, but I guess I just have to do `togglebutton("", value = it) then everything works like it should.edvin
05/09/2017, 8:03 PMedvin
05/09/2017, 8:03 PMedvin
05/09/2017, 8:03 PMnimakro
05/09/2017, 8:04 PMnimakro
05/09/2017, 8:05 PM""
because, I think the fallback is wanted in 99% of the timeedvin
05/09/2017, 8:05 PMtogglebutton(value = it) { text = null }
. It's a bit more explicit perhaps, but I understand that it might not feel elegant. I tried to be smart by giving it the default value, but it backfired for you now 🙂edvin
05/09/2017, 8:05 PMnimakro
05/09/2017, 8:07 PM""
I just wanted to make sure that I am doing things the right way 😉edvin
05/09/2017, 8:08 PMnimakro
05/09/2017, 8:12 PMTodoist
as an showcase for TornadoFx
, this project is part of an assignment I have to do for my university I will post some pictures as soon as I have something presentable... and I will open up the repo as well.... later on the client will also integrate with github to track issues ... the main idea is to have a program, to manage all the tasks in one place and with offline capabilities.edvin
05/09/2017, 8:16 PMnimakro
05/09/2017, 8:22 PMkastork
05/09/2017, 8:29 PMedvin
05/09/2017, 8:44 PMkastork
05/09/2017, 8:45 PM