Class

com.raquo.snabbdom.hooks

ModuleHooks

Related Doc: package hooks

Permalink

class ModuleHooks[N <: Node[N, D], D <: NodeData[N, D]] extends CommonHooks[N, D]

Self Type
ModuleHooks[N, D]
Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
CommonHooks[N, D], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModuleHooks
  2. CommonHooks
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ModuleHooks()

    Permalink

Type Members

  1. type EmptyNode = N

    Permalink
    Definition Classes
    CommonHooks
  2. type NewNode = N

    Permalink
    Definition Classes
    CommonHooks
  3. type OldNode = N

    Permalink
    Definition Classes
    CommonHooks
  4. type RawCreateHook = Function2[Object, NewNode, Any]

    Permalink

    This js.Object is an empty virtual node created from within snabbdom.

    This js.Object is an empty virtual node created from within snabbdom. Don't use it.

    Definition Classes
    CommonHooks
  5. type RawDestroyHook = Function1[OldNode, Any]

    Permalink
    Definition Classes
    CommonHooks
  6. type RawPostHook = Function0[Any]

    Permalink
  7. type RawPreHook = Function0[Any]

    Permalink
  8. type RawRemoveHook = Function2[OldNode, RemoveNode, Any]

    Permalink

    Note: you must eventually call RemoveNode callback to remove the node from the DOM

    Note: you must eventually call RemoveNode callback to remove the node from the DOM

    Definition Classes
    CommonHooks
  9. type RawUpdateHook = Function2[OldNode, NewNode, Any]

    Permalink
    Definition Classes
    CommonHooks
  10. type RemoveNode = Function0[Any]

    Permalink
    Definition Classes
    CommonHooks

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. def addCreateHook(hook: (Object, NewNode) ⇒ Any): ModuleHooks.this.type

    Permalink
    Definition Classes
    CommonHooks
  5. def addDestroyHook(hook: (OldNode) ⇒ Any): ModuleHooks.this.type

    Permalink
    Definition Classes
    CommonHooks
  6. def addPostHook(hook: () ⇒ Any): ModuleHooks.this.type

    Permalink
  7. def addPreHook(hook: () ⇒ Any): ModuleHooks.this.type

    Permalink
  8. def addRemoveHook(hook: (OldNode, RemoveNode) ⇒ Any): ModuleHooks.this.type

    Permalink

    Note: you MUST eventually call RemoveNode callback to remove the node from the DOM

    Note: you MUST eventually call RemoveNode callback to remove the node from the DOM

    Definition Classes
    CommonHooks
  9. def addUpdateHook(hook: (OldNode, NewNode) ⇒ Any): ModuleHooks.this.type

    Permalink
    Definition Classes
    CommonHooks
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. var create: UndefOr[RawCreateHook]

    Permalink

    Create Hook – a DOM element has been created based on a vnode Note: this hook is not called on comment nodes.

    Create Hook – a DOM element has been created based on a vnode Note: this hook is not called on comment nodes.

    Definition Classes
    CommonHooks
  13. var destroy: UndefOr[RawDestroyHook]

    Permalink

    Destroy Hook – an element is directly or indirectly being removed

    Destroy Hook – an element is directly or indirectly being removed

    This hook is invoked on a virtual node when its DOM element is removed from the DOM or if its parent is being removed from the DOM.

    To see the difference between this hook and the remove hook, consider an example.

    var vnode1 = h('div', [h('div', [h('span', 'Hello')])]); var vnode2 = h('div', []); patch(container, vnode1); patch(vnode1, vnode2);

    Here destroy is triggered for both the inner div element and the span element it contains. [remove], on the other hand, is only triggered on the div element because it is the only element being detached from its parent.

    Definition Classes
    CommonHooks
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. var post: UndefOr[RawPostHook]

    Permalink

    the patch process is done - called right at the end of patch()

  26. var pre: UndefOr[RawPreHook]

    Permalink

    the patch process begins - called right in the beginning of patch()

  27. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  28. var remove: UndefOr[RawRemoveHook]

    Permalink

    Remove Hook – an element is directly being removed from the DOM

    Remove Hook – an element is directly being removed from the DOM

    Allows you to hook into the removal of an element. The hook is called once a vnode is to be removed from the DOM. The handling function receives both the vnode and a callback. You can control and delay the removal with the callback. The callback should be invoked once the hook is done doing its business, and the element will only be removed once all remove hooks have invoked their callback.

    The hook is only triggered when an element is to be removed from its parent – not if it is the child of an element that is removed. For that, see the destroy hook.

    Definition Classes
    CommonHooks
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. var update: UndefOr[RawUpdateHook]

    Permalink

    Update Hook – an element is being updated

    Update Hook – an element is being updated

    Definition Classes
    CommonHooks
  33. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  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 CommonHooks[N, D]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped