Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Container
        Container
          Panel
            Panel
              NestedList

Class Ext.NestedList

Package:Ext
Defined In:NestedList.js
Class:NestedList
Extends:Panel

NestedList provides a miller column interface to navigate between nested sets and provide a clean interface with limited screen real-estate.

// store with data
var data = {
    text: 'Groceries',
    items: [{
        text: 'Drinks',
        items: [{
            text: 'Water',
            items: [{
                text: 'Sparkling',
                leaf: true
            },{
                text: 'Still',
                leaf: true
            }]
        },{
            text: 'Coffee',
            leaf: true
        },{
            text: 'Espresso',
            leaf: true
        },{
            text: 'Redbull',
            leaf: true
        },{
            text: 'Coke',
            leaf: true
        },{
            text: 'Diet Coke',
            leaf: true
        }]
    },{
        text: 'Fruit',
        items: [{
            text: 'Bananas',
            leaf: true
        },{
            text: 'Lemon',
            leaf: true
        }]
    },{
        text: 'Snacks',
        items: [{
            text: 'Nuts',
            leaf: true
        },{
            text: 'Pretzels',
            leaf: true
        },{
            text: 'Wasabi Peas',
            leaf: true
        }]
    },{
        text: 'Empty Category',
        items: []
    }]
};
Ext.regModel('ListItem', {
    fields: [{name: 'text', type: 'string'}]
});
var store = new Ext.data.TreeStore({
    model: 'ListItem',
    root: data,
    proxy: {
        type: 'ajax',
        reader: {
            type: 'tree',
            root: 'items'
        }
    }
});
var nestedList = new Ext.NestedList({
    fullscreen: true,
    title: 'Groceries',
    displayField: 'text',
    store: store
});

Config Options

Config OptionsDefined By
 allowDeselect : Boolean
Set to true to alow the user to deselect leaf items via interaction. Defaults to false.
NestedList
 backText : String
The label to display for the back button. Defaults to "Back".
NestedList
 baseCls : String
The base CSS class to apply to this panel's element (defaults to 'x-panel').
Panel
 centered : Boolean
Center the Component. Defaults to false.
Component
 componentCls : String
CSS Class to be added to a components root level element to give distinction to it via styling.
Component
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 disabled : Boolean
Defaults to false.
Component
 disabledCls : String
CSS class to add when the Component is disabled. Defaults to 'x-item-disabled'.
Component
 draggable : Boolean
Allows the component to be dragged via the touch event.
Component
 emptyText : String
Empty text to display when a subtree is empty.
NestedList
 floating : Boolean
Create the Component as a floating and use absolute positioning. Defaults to false.
Component
 floatingCls : Boolean
The class that is being added to this component when its floating. (defaults to x-floating)
Component
 height : Number
The height of this component in pixels.
Component
 hidden : Boolean
Defaults to false.
Component
 loadingText : String
Loading text to display when a subtree is loading.
NestedList
 monitorOrientation : Boolean
Monitor Orientation change
Component
 onItemDisclosure : Boolean/Function
Maps to the Ext.List onItemDisclosure configuration for individual lists. (Defaults to false)
NestedList
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 store : Ext.data.TreeStore
The Ext.data.TreeStore to bind this NestedList to.
NestedList
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 toolbar : Object
Configuration for the Ext.Toolbar that is created within the Ext.NestedList.
NestedList
 updateTitleText : Boolean
Update the title with the currently selected category. Defaults to true.
NestedList
 useTitleAsBackText : Boolean
NestedList
 width : Number
The width of this component in pixels.
Component

Public Properties

PropertyDefined By
 backButton : Ext.Button
NestedList
 draggable : Boolean
Read-only property indicating whether or not the component can be dragged
Component
 items : Ext.util.MixedCollection
The MixedCollection containing all the child items of this container.
Container
 rendered : Boolean
Read-only property indicating whether or not the component has been rendered.
Component
 store : Object
Ext.data.TreeStore
NestedList
 toolbar : Object
Ext.Toolbar shared across each of the lists. This will only exist when useToolbar is true which is the default.
NestedList

Public Methods

MethodDefined By

Public Events

EventDefined By