Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add tableview with wraptext, resizeable and editable, please #35

Open
amasahara opened this issue Aug 22, 2019 · 0 comments
Open

Comments

@amasahara
Copy link

I try to make a tableview data but some column, data is too long and i want it wraptext but when using setCellFactory, i can not resize and edit that cell.
examlpe

column("Values", ItemViewModel::values).makeEditable()
.setCellFactory {
val cell = TableCell<ItemViewModel, String>()
val text = Text()
cell.graphic = text
cell.prefHeight = Control.USE_COMPUTED_SIZE
text.wrappingWidthProperty().bind(it.widthProperty())
text.textProperty().bind(cell.itemProperty())
cell
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant