YXmlHook(hookName)

You can manage binding to a custom type with YXmlHook.

new YXmlHook(hookName)

Parameters:
Name Type Description
hookName string

nodeName of the Dom Node.

Extends

  • YMap.<any>

Classes

YXmlHook

Members

hookName :string

Methods

_copy()

Creates an Item with the same effect as this Item (without position effect)

_write(encoder)

Transform the properties of this type to binary and write it to an BinaryEncoder.

This is called when this Item is sent to a remote peer.

Parameters:
Name Type Description
encoder AbstractUpdateEncoder

The encoder to write data to.

clone() → {YXmlHook}

Returns:
YXmlHook

toDOM(_documentopt, hooksopt, bindingopt) → {Element}

Creates a Dom Element that mirrors this YXmlElement.

Parameters:
Name Type Attributes Default Description
_document Document <optional>
document

The document object (you must define this when calling this method in nodejs)

hooks Object.<string, any> <optional>

Optional property to customize how hooks are presented in the DOM

binding any <optional>

You should not set this property. This is used if DomBinding wants to create a association to the created DOM type

Returns:
Element -

The Dom Element