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 inform
now creates and operates on aButtonBar
- ๐
contextmenu
builder now works on any Node, not just Control - EventBus
subscribe(times = n)
parameter will unregister listener after it has firedn
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 optionalmillis
parameter to convert to/from milliseconds since epoch instead of seconds - 0๏ธโฃ
JsonConfig.DefaultDateTimeMillis = true
will causedatetime
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()