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