NavBarContainer.maxRows property

[NavBarContainer is no longer available for use as of Windows Library for JavaScript (WinJS) 4.2. Instead, use SplitViewCommand. ]

Gets or sets a value that specifies how many rows of navigation commands to display on a page.

Syntax

<div 
    data-win-control="WinJS.UI.NavBarCommand" 
    data-win-options="{ maxRows : value}">
</div>
var maxRows = navBarContainer.maxRows;
navBarContainer.maxRows = maxRows;

Property value

Type: Number

A value greater than or equal to 1 that specifies the maximum number of rows to display on each page. This setting only has an effect when the layout is set to horizontal.

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