Trait

io.udash.bindings

Bindings

Related Doc: package bindings

Permalink

trait Bindings extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bindings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ModifierExt extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CheckButtons: bindings.CheckButtons.type

    Permalink
  5. val Checkbox: bindings.Checkbox.type

    Permalink
  6. val NumberInput: bindings.NumberInput.type

    Permalink
  7. val PasswordInput: bindings.PasswordInput.type

    Permalink
  8. val RadioButtons: bindings.RadioButtons.type

    Permalink
  9. val Select: bindings.Select.type

    Permalink
  10. val TextArea: bindings.TextArea.type

    Permalink
  11. val TextInput: bindings.TextInput.type

    Permalink
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def bind[T](property: properties.ReadableProperty[T]): SimplePropertyModifier[T]

    Permalink

    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

    Modifier for bound property.

  14. def bindAttribute[T](property: properties.ReadableProperty[T])(updater: (T, Element) ⇒ Any): AttrModifier[T]

    Permalink

    Use it to update DOM elements, on every property change.

    Use it to update DOM elements, on every property change.

    property

    Property to listen.

    updater

    Element attribute updater.

    returns

    Modifier for bounded property.

  15. def bindValidation[A](property: properties.ReadableProperty[A], initBuilder: (Future[properties.ValidationResult]) ⇒ Element, completeBuilder: (properties.ValidationResult) ⇒ Element, errorBuilder: (Throwable) ⇒ Element)(implicit ec: ExecutionContext): ValidationValueModifier[A]

    Permalink

    Use in order to add validation logic over property.

    Use in order to add validation logic over property. As this modifier listens on property validation results, user is able to customize what HTML elements should be shown.

    property

    Property to bind.

    initBuilder

    Builder which is called when validation process is started. It will also give you an access to future of validation results.

    completeBuilder

    Builder which is called when validation process is completed. It will give an access to validation results.

    errorBuilder

    Builder which is called, when validation process fails.

    returns

    Modifier for validation logic.

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def emptyStringNode(): Element

    Permalink

    Creates empty text node, which is useful as placeholder.

  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def produce[T, E <: properties.ReadableProperty[T]](property: properties.ReadableSeqProperty[T, E], initBuilder: (Seq[E]) ⇒ Element, elementsUpdater: (properties.Patch[E], Element) ⇒ Any): SeqAsValuePatchingModifier[T, E]

    Permalink

    Use it to bind sequence property into DOM structure, given initBuilder will be used to generate DOM element at start.

    Use it to bind sequence property into DOM structure, given initBuilder will be used to generate DOM element at start. Then it listens to structure change and calls elementsUpdater to handle each structure change.
    Note: This will handle only structure changes, if you want to handle concrete subproperties value changes, you should use another binding method inside initBuilder and elementsUpdater.

    property

    Property to bind.

    initBuilder

    Element builder which will be used to create initial HTML element.

    elementsUpdater

    Function used to update element basing on patch.

    returns

    Modifier for bounded property.

  28. def produce[T](property: properties.ReadableSeqProperty[T, _ <: properties.ReadableProperty[T]])(builder: (Seq[T]) ⇒ Element): SeqAsValueModifier[T]

    Permalink

    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 can not be null.

    returns

    Modifier for bounded property.

  29. def produce[T](property: properties.ReadableProperty[T], checkNull: Boolean)(builder: (T) ⇒ Element): PropertyModifier[T]

    Permalink

    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.

    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

    Modifier for bounded property.

  30. def produce[T](property: properties.ReadableProperty[T])(builder: (T) ⇒ Element): PropertyModifier[T]

    Permalink

    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.

    builder

    Element builder which will be used to create HTML element.

    returns

    Modifier for bounded property.

  31. def repeat[T, E <: properties.ReadableProperty[T]](property: properties.ReadableSeqProperty[T, E])(builder: (E) ⇒ Element): SeqPropertyModifier[T, E]

    Permalink

    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 inside builder.

    property

    Property to bind.

    builder

    Builder which is used for every element.

    returns

    Modifier for repeat logic.

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped