voddan
11/05/2016, 8:07 PMcellFactory = Callback {
it.properties["tornadofx.cellFormat"] = formatter
SmartListCell(it)
}
voddan
11/05/2016, 8:08 PMvoddan
11/05/2016, 8:08 PMButtonCell
change with cellFormat {..}
voddan
11/05/2016, 8:10 PMedvin
11/05/2016, 8:37 PMvoddan
11/05/2016, 8:55 PMvoddan
11/05/2016, 8:56 PMthomasnield
11/05/2016, 11:43 PMthomasnield
11/05/2016, 11:43 PMedvin
11/06/2016, 1:04 AMedvin
11/06/2016, 1:27 AMComboBox.cellFormat
called formatButtonCell
. It's a boolean property, and I think it makes sense to have it default to true. This is a behavioral change, so it should be documented @thomasnield but I'm pretty sure that's what you'd want in most cases. This change makes sure that if you set the cellFormat
for at ComboBox
, the cell that displays the selected value when the combo is not dropped will be formatted in the same way as the values in the ListView when it's dropped. Call combobox.cellFormat(formatButtonCell = false) { }
to override. The good old trick of calling combobox.buttonCell = combobox.cellFactory.call(null)
now also works, but is not needed, since that's what the formatButtonCell
parameter set to true will do. Thomas: Do you have time to add it to the guide where we describe ComboBox?edvin
11/06/2016, 1:31 AMthomasnield
11/06/2016, 5:05 AMvoddan
11/06/2016, 8:20 AMedvin
11/06/2016, 10:45 AMListCellFragment
as well. I might create a TableCellFragment
as well for completeness.dansvidania
11/06/2016, 12:09 PMdansvidania
11/06/2016, 12:09 PMdansvidania
11/06/2016, 12:09 PMcarlw
11/06/2016, 12:41 PMdansvidania
11/06/2016, 12:46 PMcarlw
11/06/2016, 12:48 PMdansvidania
11/06/2016, 12:48 PMdansvidania
11/06/2016, 12:48 PMdansvidania
11/06/2016, 12:49 PMcarlw
11/06/2016, 5:34 PMcarlw
11/06/2016, 5:34 PMedvin
11/06/2016, 8:04 PMedvin
11/06/2016, 8:05 PMthomasnield
11/06/2016, 8:09 PMthomasnield
11/06/2016, 8:09 PM