Oracle JET Web Components are custom components that include a defined set of properties, methods, events and slots.
import { SelectorElement } from 'ojs/ojselector'
const selectorElement = document.getElementById('someSelector') as SelectorElement
More examples:
- oj-input-search (InputSearchElement)
- oj-stream-list (StreamListElement)
Knockout currently provides one and two way data binding:
import { ojInputText, ojInputPassword } from 'ojs/ojinputtext'
const myInputText = document.getElementById('username') as ojInputText
const myValue = myInputText.value
myInputText.value = "esneko"