Breadcrumb.getContentDomNode

Syntax

getContentDomNode();

Description

The getContentDomNode method returns the DOM node for contents of the Breadcrumb component.

Comments

The method returns an object of the HTMLElement type.

Example

To execute the example, the HTML page must contain the Breadcrumb component named bread (see Example of Creating the Breadcrumb Component). Set bold text inside the component:

// Get DOM node for contents of the Breadcrumb component
var contentDomNode = bread.getContentDomNode();
// Set bold text
contentDomNode.style.fontWeight = "bold";

After executing the example text inside the Breadcrumb component is bold:

Breadcrumb