edvin
10/01/2018, 7:23 PMValV
10/01/2018, 10:19 PMfind<CategoryControlFragment>(mapOf(
CategoryControlFragment::orientation to HORIZONTAL,
CategoryControlFragment::creation to false
)).openModal()
It does just open new Fragment in a window, but with the default parameters (if they are specified, otherwise throws tornadofx.DefaultErrorHandler uncaughtException
). I'm sure, that I've mistaken somewhere, but I can't find where. find
function does not pass parameters from mapOf
ValV
10/02/2018, 5:43 AMval orientation: Orientation by param()
and val creation: Boolean by param()
. Now everything worksedvin
10/02/2018, 6:24 AMValV
10/02/2018, 6:49 AMlabelPosition
to the same class property Orientation by param()
does the trick for vertical and horizontal, for square set I've put all the buttons into a single field. Problem with flow layout -- that it does not know what I want, it just gladly stretches all the controls inside the windowedvin
10/02/2018, 7:02 AMValV
10/02/2018, 8:30 AMedvin
10/02/2018, 8:45 AM