edvin / tornadofx

Lightweight JavaFX Framework for Kotlin
Apache License 2.0
3.67k stars 269 forks source link

TableViewEditModel with validation #1057

Open DeMol-EE opened 5 years ago

DeMol-EE commented 5 years ago

I was exploring the table view edit model for the first time and I was wondering if it's possible to add validators to the editable columns/cells aside from dirty tracking. Is this possible, and if so: how?

SchweinchenFuntik commented 5 years ago

The section Validation with ViewModel will help you, and in general about validation you can read there. Tornado Guide

SchweinchenFuntik commented 5 years ago

The TableViewEditModel itself is only responsible for editing and updating. You can look in more detail in the source code TornadoFX