tornadofx v1.7.0 Release Notes

Release Date: 2017-03-04 // about 7 years ago
    • ๐Ÿ”€ EventTarget.bindComponents(sourceList, converter) syncs the child nodes of the event target to the given observable list of UIComponents via the converter
    • ๐Ÿ”€ EventTarget.bindChildren(sourceList, converter) syncs the child nodes of the event target to the given observable list via the converter
    • ๐Ÿ”€ ObservableList.bind(sourceList, converter) syncs two lists and converts from one type to another on the fly
    • ๐Ÿšš API Break: Removed Node.margin helper because it shadowed margin property on Nodes which had their own margin property
    • ValidationContext.validate() has optional decorateErrors parameter
    • ValidationContext and ViewModel has valid observable boolean value
    • Kotlin 1.1 dependency
    • โž• Added MenuItem.visibleWhen
    • ๐Ÿ›  Fixed: workspace.dockInNewScope(params) operates on current scope instead of the new
    • ๐Ÿ— buttonbar builder in form now creates and operates on a ButtonBar
    • ๐Ÿ— contextmenu builder now works on any Node, not just Control
    • EventBus subscribe(times = n) parameter will unregister listener after it has fired n times (http://stackoverflow.com/questions/42465786/how-to-unsubscribe-events-in-tornadofx)
    • TextInputControl trimWhitespace(), stripWhitespace(), stripNonNumeric(), stripNonInteger continually strips or trims whitespace in inputs
    • JSON datetime function has optional millis parameter to convert to/from milliseconds since epoch instead of seconds
    • 0๏ธโƒฃ JsonConfig.DefaultDateTimeMillis = true will cause datetime to convert to/from milliseconds since epoch by default
    • ๐Ÿ‘Œ Improved Form prefWidth calculations
    • MenuItem.enableWhen function
    • ๐Ÿ‘ Custom tab support for Views. Views can be docked in tabs and even delegate to refreshable and savable for the surrounding View
    • resources stream/url/get helpers are not non-nullable
    • โž• Added resources helper to App class
    • โž• Added TrayIcon support (https://gitallhub.com/edvin/tornadofx/issues/255)
    • EventBus fire() function is now available from the App class
    • ComboBox.makeAutocompletable()