amanda.hinchman-dominguez
02/12/2018, 4:05 AMamanda.hinchman-dominguez
02/12/2018, 4:05 AMamanda.hinchman-dominguez
02/12/2018, 4:09 AMamanda.hinchman-dominguez
02/12/2018, 4:11 AMamanda.hinchman-dominguez
02/12/2018, 4:11 AMamanda.hinchman-dominguez
02/12/2018, 4:16 AMabhinay
02/12/2018, 4:17 AMamanda.hinchman-dominguez
02/12/2018, 4:19 AMamanda.hinchman-dominguez
02/12/2018, 4:20 AMabhinay
02/12/2018, 4:29 AMabhinay
02/12/2018, 5:50 AMcellFormat {
graphic = cache { it }
}
with
cellFormat {
graphic = it
}
things run fine. This makes sense because VirtualFlow reuses cells. In this case, the items are cached and don't get updated as you scroll through the VirtualFlow.abhinay
02/12/2018, 5:52 AMcellCache
property. Unfortunately, it has no docs 😛
May be @edvin can throw some light on when to use each of those?user
02/12/2018, 8:09 AMedvin
02/12/2018, 8:12 AMedvin
02/12/2018, 8:12 AMcellCache
now:edvin
02/12/2018, 8:12 AMedvin
02/12/2018, 8:13 AMcellCache
just requires you to return a Node, and it will be attached to the graphic property of the cell, and matches with the current item for the cell.edvin
02/12/2018, 8:15 AMNode.cache
, this is the current docs:edvin
02/12/2018, 8:16 AMedvin
02/12/2018, 8:17 AMedvin
02/12/2018, 8:48 AMedvin
02/12/2018, 9:02 AMabhinay
02/12/2018, 9:22 AMcellCache
does the same thing as Node.cache
+ an item binding would have done for cells?edvin
02/12/2018, 9:25 AMedvin
02/12/2018, 9:25 AMabhinay
02/12/2018, 9:28 AMedvin
02/12/2018, 9:28 AMmariofelesdossantosjr
02/12/2018, 3:56 PMmariofelesdossantosjr
02/12/2018, 3:58 PMabhinay
02/12/2018, 4:00 PM