(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
Bindingcan be enabled by the followingimportstatement:import com.thoughtworks.binding.bindable._Then, a
@domXHTML template can establish data-binding on anyparameteras long as a Bindable type class for theparametertype is available.Note that the
?syntax requires the Scala plug-in kind-projector, which can be enabled by adding the following setting into yourbuild.sbt:addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.10")ThemySectionmethod accepts any parameter who is a subtype ofBinding[String].And the
mySectionmethod also accepts String parameter.Binding { mySection("my-class-3").bind.className should be("my-class-3") }.watch()mySectionshould not accept irrelevant parameter types like scala.List or scala.Int.