YXmlText()

Represents text in a Dom Element. In the future this type will also handle simple formatting information like bold and italic.

new YXmlText()

Methods

toDom(_documentopt, hooksopt, bindingopt) → {Text}

Creates a Dom Element that mirrors this YXmlText.

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:
Text -

The Dom Element