Hi everyone, I'm unable to fix a compilation probl...
# tornadofx
e
Hi everyone, I'm unable to fix a compilation problem on the TableSelectView article (https://edvin.town/leveraging-tornadofx-to-the-fullest/) All calls to
column(...)
below cause this error:
None of the following functions can be called with the arguments supplied.
Copy code
override val root = vbox(10.0) {
        tableview(items) {
            column("SKU", Item::sku) 
            column("Item", Item::descr)
            column("Price", Item::price)
            column("Taxable", Item::taxable)
            bindSelected(mySelectedItem)
            setPrefSize(667.0, 376.0)
            columnResizePolicy = CONSTRAINED_RESIZE_POLICY
            vgrow = Priority.ALWAYS
        }
h
I think it expects to work with properties now, so an
Item
class like this would work:
Copy code
data class Item(val sku : StringProperty,
                val descr : StringProperty,
                val price : FloatProperty,
                val taxable : BooleanProperty)
e
will check this, thanks!
h
e
thanks again 😉