Element: <oj-bind-text>
Oracle® JavaScript Extension Toolkit (JET)
8.0.0
F18189-01
Signature:
class ojBindText
- Version:
- 8.0.0
- Since:
- 4.1.0
- Module:
- ojknockout
Module usage
See JET Module Loading for an overview of module usage within JET.
Typescript Import Format
//To typecheck the element APIs, import as below.
import {ojBindText} from "ojs/ojknockout";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojknockout";
JET In Typescript
A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.
Text Binding
Use <oj-bind-text> to generate a text node with the resolved expression. 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.