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