O'Reilly logo

Sams Teach Yourself Windows® 8 Apps with JavaScript and HTML5 in 24 Hours by Chad Carter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required