O'Reilly logo

Learning Ext JS - Fourth Edition by Armando Gonzalez, Crysfel Villa, Carlos A. Méndez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The breadcrumb bar

A new addition in Ext JS version 5 is the breadcrumb bar. This bar displays hierarchical data from a TreeStore as a trail of breadcrumb buttons. In Chapter 9, The Tree Panel, we will talk about the tree store in more detail, and also check out more specific information about TreeStore.

Let's begin with creating a new HTML file and our JS code. First of all, we need to define our store that contains data for the breadcrumb bar with the following code:

Ext.define('Myapp.sample.store.mainMenu', { extend: 'Ext.data.TreeStore', root: { text: 'My app', expanded: true, children: [{ text: 'Modules', expanded: true, children: [ {leaf: true, text: 'Employees'}, {leaf: true, text: 'Customers'}, {leaf: true, text: 'Products'} ] },{ text: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required