Skip to content

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

@amasahara

Description

@amasahara

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions