Custom MFXListCell requires Node in Node #374
Unanswered
ponchoboob
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I did it this way for two main reasons:
For your specific use case, if the model data type are nodes, then you just need a custom cell implementation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, great library! big fan
I recently explored customizing the content of a MFXListView's ListCell. It's somewhat different from the typical approach used with JavaFX ListCell. My inquiry revolves around the use of StringConverter and the default Label. In MFXListCell, there's a distinction based on whether the model data is of type Node. For customizing my ListCell, it seems necessary to encapsulate the model data within another model class that extends from HBox or any other preferred control. Given that MFXListCell inherently functions as an HBox, I'm curious about the rationale behind the additional Label that is automatically included as a child within the MFXListCell (which is essentially an HBox). Of course I get provide a StringConverter that returns an emptry string. But that label is still there as a child of the MFXListCell's HBox.
kind regards.
Beta Was this translation helpful? Give feedback.
All reactions