December 2017
Intermediate to advanced
282 pages
5h 54m
English
Create an ojInputDateTime component using the ojComponent binding with an ID. To review the value of the date time element, create an HTML label with the for attribute referring to the value of the ID from ojInputDateTime. Populate the value from the model layer. The following is the example for the date time input component:
<div id="divId"> <label for="birthDateTime">Birth Date Time:</label> <input id="birthDateTime" data-bind="ojComponent: {component: 'ojInputDateTime', value: bdt}"/> <br/><br/> <span class="oj-label">Current component value is:</span> <span data-bind="text: bdt"></span> </div>
require(['ojs/ojcore', 'knockout', 'jquery', 'ojs/ojknockout', 'ojs/ojdatetimepicker', 'ojs/ojtimezonedata'], ...
Read now
Unlock full access