MaxLevel (NotesViewNavigator - JavaScript)

Read-Write. The navigator's maximum level of navigation.

Defined in

NotesViewNavigator

Syntax

getMaxLevel() : int

setMaxLevel(mLevel:int) : void

Legal value

  • 0 minimum (top level)
  • 30 maximum (default)

Usage

The maximum cannot be less than the minimum implied by the navigator type, for example, category, children, or descendants.

Examples

This beforePageLoad event creates a view navigator and limits the levels to 8.
var nav1:NotesViewNavigator = database.getView("By category and date").createViewNav();
nav1.setMaxLevel(8);