December 2013
Intermediate to advanced
480 pages
14h 11m
English
You declare a WinJS control in a page by using the data-win-control attribute. For example, you can declare the WinJS DatePicker control by adding the following DIV element to a page:
<div id="dateBirthday" data-win-control="WinJS.UI.DatePicker"></div>
The DIV element isn’t really doing anything. It is just acting as a placeholder for the control. It is a “host” for the DatePicker control. The data-win-control attribute is used to indicate the type of control that will be associated with the element.
A WinJS control does not actually become a control until you call the WinJS.UI.processAll() method. This method parses an HTML document, identifies any and all elements that include ...
Read now
Unlock full access