Element: <oj-bind-text>

Oracle® JavaScript Extension Toolkit (JET)
5.0.0

E90577-01

QuickNav

Attributes

PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

Version:
  • 5.0.0
Since:
  • 4.1.0
Module:
  • ojknockout

Text Binding

Use <oj-bind-text> to bind a text node to a variable. Note that the <oj-bind-text> element will be removed from the DOM after binding is applied, and any child elements it has will be removed. For slotting, applications need to wrap the oj-bind-text element inside another HTML element (e.g. <span>) with the slot attribute. The oj-bind-text element does not support the slot attribute.

Example

Initialize the oj-bind-text:

<span>
  <oj-bind-text value='[[myText]]'></oj-bind-text>
</span>

Attributes

value :string

The value of the text node.
Example

Initialize the oj-bind-text:

<span>
  <oj-bind-text value='[[myText]]'></oj-bind-text>
</span>