edvin
03/09/2018, 10:38 PMbindChildren
expects you to return a Node that will correspond to the item passed in, right? The issue with calling button()
is that the builder will actually be called on the flowPane and attached directly. What you want is simply to return a Button instance and have bindChildren
attach it, so you must not use the builder. So Button()
is just instantiating a button, while button()
is calling a builder that will attach that button to the Node
it's called on. This is a common mistake, and I can absolutely see why it's hard to get the distinction. It's on my screncast list to explain this in more detail.JD
03/09/2018, 10:39 PMedvin
03/09/2018, 10:41 PMcallFunctionThatAcceptsImageView(imageview())
. This will actually attach the imageview to the current Node as well as pass it as a function parameter. Problematic, but luckily easily fixed once you understand the builders and specifically when no to use them 🙂pike
03/12/2018, 2:22 AMthomasnield
03/12/2018, 3:52 AMthomasnield
03/12/2018, 3:55 AMhttps://media.giphy.com/media/joV1k1sNOT5xC/giphy.gif▾
thomasnield
03/12/2018, 4:01 AMpike
03/12/2018, 4:35 AMbkenn
03/12/2018, 4:42 AMpike
03/12/2018, 8:46 AMthomasnield
03/12/2018, 12:35 PMcarlw
03/12/2018, 3:33 PMkastork
03/12/2018, 10:09 PMedvin
03/12/2018, 10:21 PMcarlw
03/12/2018, 11:35 PMthomasnield
03/13/2018, 1:15 PMedvin
03/13/2018, 1:28 PMedvin
03/13/2018, 1:34 PMFirst cut :)▾
carlw
03/13/2018, 1:49 PMedvin
03/13/2018, 2:04 PMcarlw
03/13/2018, 2:07 PMmariofelesdossantosjr
03/13/2018, 2:58 PMmariofelesdossantosjr
03/13/2018, 2:59 PMedvin
03/13/2018, 3:01 PMedvin
03/13/2018, 10:14 PMiari
03/13/2018, 11:16 PMedvin
03/14/2018, 8:23 PMkastork
03/14/2018, 9:00 PMedvin
03/14/2018, 10:05 PMedvin
03/14/2018, 10:07 PMImage uploaded from iOS▾