A helper to build complicated comprehension expressions for BindingSeq
A helper to build complicated comprehension expressions for BindingSeq
Returns the current value of this Binding and mark the current @dom
method depend on this Binding.
Returns the current value of this Binding and mark the current @dom
method depend on this Binding.
Each time the value changes, in the current @dom
method,
all code after the current bind
expression will be re-evaluated if the current @dom
method is #watching.
However, code in current @dom
method and before the current bind
expression will not be re-evaluated.
This rule is not applied to DOM nodes created by XHTML literal.
A change related to a DOM node does not affect siblings and parents of the node.
This method must be invoked inside a @dom
method body.
Returns a BindingSeq that flat-maps each element of this BindingSeq via f
Returns a BindingSeq that flat-maps each element of this BindingSeq via f
This method is only available in a Binding { ??? }
block or a @dom
method.
Underlying implementation of #flatMap.
Underlying implementation of #flatMap.
Don't use this method in user code.
Returns a scala.collection.mutable.Buffer that allow you change the content of this Vars.
Returns a scala.collection.mutable.Buffer that allow you change the content of this Vars.
Whenever you change the returned buffer, other binding expressions that depend on this Vars will be automatically changed.
This method must not be invoked inside a @dom
method body.
Returns a BindingSeq that maps each element of this BindingSeq via f
Returns a BindingSeq that maps each element of this BindingSeq via f
This method is only available in a Binding { ??? }
block or a @dom
method.
Underlying implementation of #map.
Underlying implementation of #map.
Don't use this method in user code.
Disables automatically re-calculation.
Disables automatically re-calculation.
This method is recursive, which means that the dependencies of this BindingSeq will be unwatched as well.
Enables automatically re-calculation.
Enables automatically re-calculation.
You may invoke this method more than once. Then, when you want to disable automatically re-calculation, you must invoke #unwatch same times as the number of calls to this method.
This method is recursive, which means that the dependencies of this BindingSeq will be watched as well.
Returns a view of this BindingSeq that applied a filter of condition
Returns a view of this BindingSeq that applied a filter of condition
Underlying implementation of #withFilter.
Underlying implementation of #withFilter.
Don't use this method in user code.
Disable automatically re-calculation.
Disable automatically re-calculation.
(vars: AsBinding[A]).unwatch()
This method is recursive, which means that the dependencies of this Binding will be unwatched as well.
Enable automatically re-calculation.
Enable automatically re-calculation.
You may invoke this method more than once. Then, when you want to disable automatically re-calculation, you must invoke #unwatch same times as the number of calls to this method.
(vars: AsBinding[A]).watch()
This method is recursive, which means that the dependencies of this Binding will be watched as well.
(Since version 7.0.0) Use Binding#bind instead
Source sequence of data binding expression.