NavigationItem.addHeaderClass

Syntax

addHeaderClass(className: String);

Parameters

className. Name of the added css class.

Description

The addHeaderClass method adds a CSS class to DOM node of tab.

Example

To execute the example, the page must contain the NavigationBar component named navigationBar (see Example of Creating the NavigationBar Component). Add a new class to DOM node of the first tab:

// Add a new class to DOM node of the first tab
navigationBar.getLayoutItems()[0].addHeaderClass("New Class");

See also:

NavigationItem