(bindable: Ops[Bindable[From]] { type TypeClassType = com.thoughtworks.binding.bindable.BindableSeq[com.thoughtworks.binding.bindable.Bindable[From]]{type Value = tc.Value} }).self
(bindable: Ops[Bindable[From]] { type TypeClassType = com.thoughtworks.binding.bindable.Bindable[com.thoughtworks.binding.bindable.Bindable[From]]{type Value = tc.Value} }).self
(bindable: Ops[Bindable[From]] { type TypeClassType = com.thoughtworks.binding.bindable.Bindable[com.thoughtworks.binding.bindable.Bindable[From]]{type Value = tc.Value} }).toBinding
(bindable: Ops[Bindable[From]] { type TypeClassType = com.thoughtworks.binding.bindable.BindableSeq[com.thoughtworks.binding.bindable.Bindable[From]]{type Value = tc.Value} }).typeClassInstance
(bindable: Ops[Bindable[From]] { type TypeClassType = com.thoughtworks.binding.bindable.Bindable[com.thoughtworks.binding.bindable.Bindable[From]]{type Value = tc.Value} }).typeClassInstance
(Since version 7.0.0) Use bind instead
A dependent type class that witnesses a type that can be converted to a
Binding[Value]
.The implicit conversion to
Binding
can be enabled by the followingimport
statement:import com.thoughtworks.binding.bindable._
Then, a
@dom
XHTML template can establish data-binding on anyparameter
as long as a Bindable type class for theparameter
type is available.Note that the
The?
syntax requires the Scala plug-in kind-projector, which can be enabled by adding the following setting into yourbuild.sbt
:mySection
method accepts any parameter who is a subtype ofBinding[String]
.And the
mySection
method also accepts String parameter.mySection
should not accept irrelevant parameter types like scala.List or scala.Int.