ktw
06/09/2017, 6:27 PMedvin
06/09/2017, 6:29 PMcellFormat
on a TableCell that already has a formatter will now add the new formatter as a decorator instead of overwriting the oldedvin
06/09/2017, 6:30 PMktw
06/09/2017, 6:30 PMktw
06/09/2017, 6:30 PMedvin
06/09/2017, 6:32 PMktw
06/09/2017, 6:33 PMedvin
06/09/2017, 6:33 PMedvin
06/09/2017, 6:33 PMRuckus
06/09/2017, 6:36 PMedvin
06/09/2017, 6:37 PMedvin
06/09/2017, 6:37 PMktw
06/09/2017, 7:01 PMedvin
06/09/2017, 7:02 PMedvin
06/09/2017, 7:03 PMedvin
06/09/2017, 7:10 PMktw
06/09/2017, 7:17 PMedvin
06/09/2017, 7:21 PMktw
06/09/2017, 7:23 PMktw
06/09/2017, 7:30 PMedvin
06/09/2017, 7:31 PMcellFactory
. I'll see if I can do a reverse trick for that as well.ktw
06/09/2017, 7:33 PMedvin
06/09/2017, 7:37 PMktw
06/09/2017, 7:40 PMedvin
06/09/2017, 8:41 PMcellFormat
callbacks, but it's not trivial to combine two cellFactory implementations, since they both generate a cell, and only one of them can be used. So when you have called useTextField
, we need to keep using the cell provided by the first factory and only augment the call with the new formatter function. It does make sense to "fall back" to a decorator for cellFormat if there is an existing cell factory, and I've now made sure it haves as closely to how it would if there was no prior cell factory, so I think this way we'll have the least number of surprises. Looking at the other way around now - first declaring cellFormat
and then calling useTextField
.ktw
06/09/2017, 8:49 PMnimakro
06/09/2017, 8:50 PMedvin
06/09/2017, 8:52 PMedvin
06/09/2017, 8:53 PM