Hour 4. Creating WinJS Namespaces, Classes, and Custom Controls
What You’ll Learn This Hour:
• How to use WinJS to define namespaces
• How to use WinJS to define classes
• How to create custom controls
• How to create custom HTML controls
• How to add intelliSense to functions so that Visual Studio can recognize them
We cover here how to create custom controls in different ways and how they can be consumed multiple ways. Finally, we show how to add intelliSense to JavaScript functions.
Defining Namespaces and Classes Using WinJS
In this hour, we explore how to use WinJS to define our own namespaces and classes. For programmers who work with only JavaScript, this might seem odd. However, namespaces have two important functions. The first job ...
Get Sams Teach Yourself Windows® 8 Apps with JavaScript and HTML5 in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.