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