object Bindings extends Bindings
- Alphabetic
- By Inheritance
- Bindings
- Bindings
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class AttrOps extends AnyVal
- final class AttrPairOps extends AnyVal
- trait HasCssName[-T] extends AnyRef
Abstraction over scalatags styles representation.
- implicit final class InlineStyleOps[T] extends AnyRef
- Definition Classes
- Bindings
- final class PropertyOps[T] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final val CheckButtons: inputs.CheckButtons.type
- Definition Classes
- Bindings
- final val Checkbox: inputs.Checkbox.type
- Definition Classes
- Bindings
- final val FileInput: inputs.FileInput.type
- Definition Classes
- Bindings
- final val NumberInput: inputs.NumberInput.type
- Definition Classes
- Bindings
- final val PasswordInput: inputs.PasswordInput.type
- Definition Classes
- Bindings
- final val RadioButtons: inputs.RadioButtons.type
- Definition Classes
- Bindings
- final val RangeInput: inputs.RangeInput.type
- Definition Classes
- Bindings
- final val Select: inputs.Select.type
- Definition Classes
- Bindings
- final val TextArea: inputs.TextArea.type
- Definition Classes
- Bindings
- final val TextInput: inputs.TextInput.type
- Definition Classes
- Bindings
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def available(e: Node): Boolean
- Annotations
- @inline()
- def bind(property: properties.single.ReadableProperty[_]): Binding
Use it to bind value of property into DOM structure.
Use it to bind value of property into DOM structure. Value of the property will be rendered as text node. (Using .toString method.) If property value is null, empty text node will be added.
- property
Property
to bind.- returns
property binding.
- Definition Classes
- Bindings
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def emptyStringNode(): Node
Creates empty text node, which is useful as placeholder.
Creates empty text node, which is useful as placeholder.
- Definition Classes
- Bindings
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def produce[T](property: properties.seq.ReadableSeqProperty[T, _ <: properties.single.ReadableProperty[T]], customElementsReplace: ReplaceMethod)(builder: (Seq[T]) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change. Notice that on every property change, whole element representing property will be rendered again.- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- builder
Element
builder which will be used to create HTML element. Seq passed to the builder can not be null.- returns
property binding.
- Definition Classes
- Bindings
- def produce[T](property: properties.seq.ReadableSeqProperty[T, _ <: properties.single.ReadableProperty[T]])(builder: (Seq[T]) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change. Notice that on every property change, whole element representing property will be rendered again.- property
Property
to bind.- builder
Element
builder which will be used to create HTML element.Seq
passed to the builder cannot be null.- returns
property binding.
- Definition Classes
- Bindings
- def produce[T](property: properties.single.ReadableProperty[T], customElementsReplace: ReplaceMethod, checkNull: Boolean)(builder: (T) => Seq[Node]): Binding
Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change. If property value is null, empty text node will be added as placeholder.- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- checkNull
if it is true, then null value of property will result in rendering empty text node. if it is false, then null value has to be handled by builder.
- builder
Element
builder which will be used to create HTML element.- returns
property binding.
- Definition Classes
- Bindings
- def produce[T](property: properties.single.ReadableProperty[T], checkNull: Boolean = true)(builder: (T) => Seq[Node]): Binding
Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change. If property value is null, empty text node will be added as placeholder.- property
Property
to bind.- checkNull
if it is true, then null value of property will result in rendering empty text node. if it is false, then null value has to be handled by builder.
- builder
Element
builder which will be used to create HTML element.- returns
property binding.
- Definition Classes
- Bindings
- def produceWithNested[T](property: properties.seq.ReadableSeqProperty[T, _ <: properties.single.ReadableProperty[T]], customElementsReplace: ReplaceMethod)(builder: (Seq[T], NestedInterceptor) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change. Notice that on every property change, whole element representing property will be rendered again.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- builder
Element
builder which will be used to create HTML element. Seq passed to the builder can not be null.- returns
property binding.
- Definition Classes
- Bindings
- def produceWithNested[T](property: properties.seq.ReadableSeqProperty[T, _ <: properties.single.ReadableProperty[T]])(builder: (Seq[T], NestedInterceptor) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind sequence property into DOM structure, given
builder
will be used to generate DOM element on every value change. Notice that on every property change, whole element representing property will be rendered again.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
- property
Property
to bind.- builder
Element
builder which will be used to create HTML element. Seq passed to the builder can not be null.- returns
property binding.
- Definition Classes
- Bindings
- def produceWithNested[T](property: properties.single.ReadableProperty[T], customElementsReplace: ReplaceMethod, checkNull: Boolean)(builder: (T, NestedInterceptor) => Seq[Node]): Binding
Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change. If property value is null, empty text node will be added as placeholder.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
For example:
produceWithNested(property) { case (data, nested) => div(data, nested(produce(anotherProperty) { innerData => span(innerData).render })).render }
- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- checkNull
if it is true, then null value of property will result in rendering empty text node. if it is false, then null value has to be handled by builder.
- builder
Element
builder which will be used to create HTML element.- returns
property binding.
- Definition Classes
- Bindings
- def produceWithNested[T](property: properties.single.ReadableProperty[T], checkNull: Boolean = true)(builder: (T, NestedInterceptor) => Seq[Node]): Binding
Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change.Use it to bind property into DOM structure, given
builder
will be used to generate DOM element on every value change. If property value is null, empty text node will be added as placeholder.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
For example:
produceWithNested(property) { case (data, nested) => div(data, nested(produce(anotherProperty) { innerData => span(innerData).render })).render }
- property
Property
to bind.- checkNull
if it is true, then null value of property will result in rendering empty text node. if it is false, then null value has to be handled by builder.
- builder
Element
builder which will be used to create HTML element.- returns
property binding.
- Definition Classes
- Bindings
- def queuedNode(component: => Seq[Node], timeout: Int = 0): Modifier[Element]
Renders component with provided timeout.
Renders component with provided timeout. It's useful to render heavy components after displaying the main view.
- Definition Classes
- Bindings
- def repeat[T, E <: properties.single.ReadableProperty[T]](property: properties.seq.ReadableSeqProperty[T, E], customElementsReplace: ReplaceMethod = DOMManipulator.DefaultElementReplace, customElementsInsert: InsertMethod = DOMManipulator.DefaultElementInsert)(builder: (E) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure.
Use it to bind sequence property into DOM structure. This method cares about adding new elements which appears in sequence and also removes those which were removed. You only need to provide builder which is used to create HTML element for each sequence member.
Note: This will handle only structure changes, if you want to handle concrete subproperties changes, you should use another binding method insidebuilder
.- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- customElementsInsert
takes root element, ref node and new children. It should return
true
, if it does not insert elements in DOM. Is such a case the default implementation will insert the elements. Otherwise you have to insert elements in DOM manually.- builder
Builder
which is used for every element.- returns
property binding.
- Definition Classes
- Bindings
- def repeatWithIndex[T, E <: properties.single.ReadableProperty[T]](property: properties.seq.ReadableSeqProperty[T, E], customElementsReplace: ReplaceMethod = DOMManipulator.DefaultElementReplace, customElementsInsert: InsertMethod = DOMManipulator.DefaultElementInsert)(builder: (E, properties.single.ReadableProperty[Int], NestedInterceptor) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure.
Use it to bind sequence property into DOM structure. This method cares about adding new elements which appears in sequence and also removes those which were removed. You only need to provide builder which is used to create HTML element for each sequence member. This modifier provides also property with element index in sequence.
Note: This will handle only structure changes, if you want to handle concrete subproperties changes, you should use another binding method insidebuilder
.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- customElementsInsert
takes root element, ref node and new children. It should return
true
, if it does not insert elements in DOM. Is such a case the default implementation will insert the elements. Otherwise you have to insert elements in DOM manually.- builder
Builder
which is used for every element.- returns
property binding.
- Definition Classes
- Bindings
- def repeatWithNested[T, E <: properties.single.ReadableProperty[T]](property: properties.seq.ReadableSeqProperty[T, E], customElementsReplace: ReplaceMethod = DOMManipulator.DefaultElementReplace, customElementsInsert: InsertMethod = DOMManipulator.DefaultElementInsert)(builder: (E, NestedInterceptor) => Seq[Node]): Binding
Use it to bind sequence property into DOM structure.
Use it to bind sequence property into DOM structure. This method cares about adding new elements which appears in sequence and also removes those which were removed. You only need to provide builder which is used to create HTML element for each sequence member.
Note: This will handle only structure changes, if you want to handle concrete subproperties changes, you should use another binding method insidebuilder
.The builder takes nested bindings interceptor - it should be used if you want to create another binding inside this builder. This prevents memory leaks by killing nested bindings on property change.
- property
Property
to bind.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- customElementsInsert
takes root element, ref node and new children. It should return
true
, if it does not insert elements in DOM. Is such a case the default implementation will insert the elements. Otherwise you have to insert elements in DOM manually.- builder
Builder
which is used for every element.- returns
property binding.
- Definition Classes
- Bindings
- implicit def seqFromElement(el: Element): Seq[Element]
- Definition Classes
- Bindings
- implicit def seqFromNode(el: Node): Seq[Node]
- Definition Classes
- Bindings
- implicit def seqNodeFromOpt[T](el: com.avsystem.commons.Opt[T])(implicit ev: (T) => Modifier[Element]): Modifier[Element]
- Definition Classes
- Bindings
- def showIf(property: properties.single.ReadableProperty[Boolean], customElementsReplace: ReplaceMethod)(elements: => Seq[Node]): Binding
Shows provided DOM elements only if property value is
true
.Shows provided DOM elements only if property value is
true
.- property
Property
to check.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- elements
Element
s to show if property value istrue
.- returns
property binding.
- Definition Classes
- Bindings
- def showIf(property: properties.single.ReadableProperty[Boolean])(elements: => Seq[Node]): Binding
Shows provided DOM elements only if property value is
true
.Shows provided DOM elements only if property value is
true
.- property
Property
to check.- elements
Element
s to show if property value istrue
.- returns
property binding.
- Definition Classes
- Bindings
- def showIfElse(property: properties.single.ReadableProperty[Boolean], customElementsReplace: ReplaceMethod)(elements: => Seq[Node], elseElements: => Seq[Node]): Binding
Switches provided DOM elements depending on property value.
Switches provided DOM elements depending on property value.
- property
Property
to check.- customElementsReplace
takes root element, old children and new children. It should return
true
, if it did not replace elements in DOM. Is such a case the default implementation will replace the elements. Otherwise you have to replace elements in DOM manually.- elements
Element
s to show if property value istrue
.- elseElements
Element
s to show if property value isfalse
.- returns
property binding.
- Definition Classes
- Bindings
- def showIfElse(property: properties.single.ReadableProperty[Boolean])(elements: => Seq[Node], elseElements: => Seq[Node]): Binding
Switches provided DOM elements depending on property value.
Switches provided DOM elements depending on property value.
- property
Property
to check.- elements
Element
s to show if property value istrue
.- elseElements
Element
s to show if property value isfalse
.- returns
property binding.
- Definition Classes
- Bindings
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit def toAttrOps(attr: Attr): AttrOps
- Definition Classes
- Bindings
- implicit def toAttrPairOps(attr: AttrPair[Element, _]): AttrPairOps
- Definition Classes
- Bindings
- implicit def toPropertyOps[T](property: properties.single.ReadableProperty[T]): PropertyOps[T]
- Definition Classes
- Bindings
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object HasCssName