How to convert property value before displaying? F...
# tornadofx
a
How to convert property value before displaying? For example to show just file name instead of full path. I tried this, but no effect
Copy code
label {
                    bind(viewModel.filePathProperty, converter = object : StringConverter<String>() {
                        override fun fromString(value: String?) = File(value).name
                        override fun toString(value: String?) = File(value).name
                    })
                }