CHAPTER 4

image

List Controls, AppBar, and ToolBar

This chapter focuses on the controls that are related to the collection of data, including Repeater, FlipView, and ListView. The chapter also covers recipes on menu-related controls, such as AppBar, ToolBar, Flyouts, ContextMenu, and MenuFlyouts.

4.1 Using the Repeater Control

Problem

You need to display a collection of data on the user interface (UI) using the WinJS Repeater control.

Solution

The Repeater control is one of the controls available in the WinJS library to display a collection data on the UI. You can add the Repeater control by setting the data-win-control attribute to the WinJS.UI.Repeater ...

Get Windows 10 Development Recipes: A Problem-Solution Approach in HTML and JavaScript 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.