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>

Members

hookName :string

Methods

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