NavBarContainer.template property

[NavBarContainer is no longer available for use as of Windows Library for JavaScript (WinJS) 4.2. Instead, use SplitViewCommand. ]
Gets or sets the WinJS.Binding.Template or templating function that creates the Document Object Model (DOM) elements for each item in the data source. Each item can contain multiple elements, but it must have a single root element.
Syntax
<div data-win-control="WinJS.UI.NavBarContainer" data-win-options="{ template : value}" > </div>
var template = navBarContainer.template;
navBarContainer.template = template;
Property value
Type: WinJS.UI.Template
A WinJS.Binding.Template or a templating function that generates DOM elements for each item in the data source. For more information, see the Remarks section. You must set this property if you want to style the ListView items. The default value is null.
Requirements
|
Minimum WinJS version |
WinJS 2.0 |
|---|---|
|
Namespace |
WinJS.UI |
See also
- NavBarContainer
- NavBar
- NavBarCommand
- BackButton
- AppBar
- Your first app - Part 3: PageControl objects and navigation
- Navigating between pages (HTML)
- Adding app bars
- Adding nav bars
- HTML AppBar control sample
- HTML NavBar control sample
- Navigation and navigation history sample
- Designers
- Command patterns
- Navigation patterns
- Guidelines for app bars
- Bottom app bar
- Top app bar