December 2017
Intermediate to advanced
282 pages
5h 54m
English
Create an ojInputText component using the ojComponent binding with an ID. To review the value of the text element, create an HTML label with the for attribute referring to the value of ID from ojInputText. Populate the value from the model layer. The following is the example for the text input component:
<div id="divId"> <label for="text-input">First Name</label> <input id="text-input" type="text" data-bind="ojComponent: {component: 'ojInputText', value: firstName}"/> <br/> <span class="oj-label">First Name value is: </span> <span data-bind="text: firstName"></span> </div>
require(['ojs/ojcore', 'knockout', 'jquery', 'ojs/ojknockout', 'ojs/ojinputtext'], function (oj, ko, $) { function SimpleModel() ...Read now
Unlock full access