(bindableSeq: Ops[BindableSeq[From]] { type TypeClassType = com.thoughtworks.binding.bindable.BindableSeq[com.thoughtworks.binding.bindable.BindableSeq[From]]{type Value = tc.Value} }).self
(bindableSeq: Ops[BindableSeq[From]] { type TypeClassType = com.thoughtworks.binding.bindable.Bindable[com.thoughtworks.binding.bindable.BindableSeq[From]]{type Value = tc.Value} }).self
(bindableSeq: Ops[BindableSeq[From]] { type TypeClassType = com.thoughtworks.binding.bindable.BindableSeq[com.thoughtworks.binding.bindable.BindableSeq[From]]{type Value = tc.Value} }).toBindingSeq
(bindableSeq: Ops[BindableSeq[From]] { type TypeClassType = com.thoughtworks.binding.bindable.BindableSeq[com.thoughtworks.binding.bindable.BindableSeq[From]]{type Value = tc.Value} }).typeClassInstance
(bindableSeq: Ops[BindableSeq[From]] { type TypeClassType = com.thoughtworks.binding.bindable.Bindable[com.thoughtworks.binding.bindable.BindableSeq[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
BindingSeq[Value]
.The bindSeq can be enabled by the following
import
statement:import com.thoughtworks.binding.bindable._
Then, a
@dom
XHTML template can establish data-binding on anyparameter
as long as a BindableSeq 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[Node]
orBinding[BindingSeq[Node]]
.And the
mySection
method also acceptsNode
,BindingSeq[Node]
,List[Node]
,Array[Node]
,js.Array[Node]
, orBinding[js.Array[Node]]
parameter.mySection
should not accept irrelevant parameter types like scala.collection.immutable.Set or scala.Int.