How to put a context menu of actions on a MFXTableRow #320
Closed
infinite-dev22
started this conversation in
General
Replies: 1 comment 4 replies
-
|
I believe you are using it wrong. The table row factory is a function that maps T to a MFXTableRow. And sice it's a function you also need to return a value, so the code you posted won't even compile table.setTableRowFactory(t - > {
MFXTableRow<T> row = new MFXTableRow<>(t);
row.setOnMouseClicked(e -> ...);
return row;
});This should work |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to have some options presented to the user when he/she right clicks on a table row.
I tried this bellow:
There isn't away for to place an event listener on the table rows.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions