I'm experimenting with Exposed and Tornadofx. I wa...
# tornadofx
m
I'm experimenting with Exposed and Tornadofx. I was able to fill a TableView with sales transactions (stored in a db) and under each transaction I put the articles with rowexpander {}. This worked well so far (see screenshot) but now I would like to have a button (for cancelling either a complete sale transaction or individual articles from the nested sub-tables) which should be only enabled if either a sale transaction is selected or an article from a sub-table is selected. The former is doable with something like
enableWhen(salesView.selectionModel.selectedItemProperty().isNotNull)
. But I have no idea how to do this for the nested sub-tables. Is this possible somehow? I was also thinking about using TreeTableView but there I was stuck how to fill it with different types (sales and articles)...