CHAPTER 3

image

Basic WinJS Controls

This chapter provides an overview of the controls that are available in the WinJS library, which can be used by developers to quickly build their Windows apps. It explores how to add WinJS controls to a page, as well basic WinJS controls like the ToggleSwitch, Rating, DatePicker, TimePicker, tooltip, text controls, and more.

There are advanced controls in WinJS that can be used to list records, display menus, or add toolbars in an app. (Chapter 4 covers advanced controls like ListView, Toolbar, and AppBar.)

3.1 Declaring a WinJS Control on a Page

Problem

You need to add or declare a WinJS control on a page of your ...

Get Windows 10 Development Recipes: A Problem-Solution Approach in HTML and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.