Properties Methods Events Config Options Direct Link

Class Ext.ux.StatusBar

Package:Ext.ux
Defined In:StatusBar.js
Class:StatusBar
Extends:Object

Basic status bar component that can be used as the bottom toolbar of any Ext.Panel. In addition to supporting the standard Ext.Toolbar interface for adding buttons, menus and other items, the StatusBar provides a greedy status element that can be aligned to either side and has convenient methods for setting the status text and icon. You can also indicate that something is processing using the showBusy method.

new Ext.Panel({
    title: 'StatusBar',
    // etc.
    bbar: new Ext.ux.StatusBar({
        id: 'my-status',

        // defaults to use when the status is cleared:
        defaultText: 'Default status text',
        defaultIconCls: 'default-icon',

        // values to set initially:
        text: 'Ready',
        iconCls: 'ready-icon',

        // any standard Toolbar items:
        items: [{
            text: 'A Button'
        }, '-', 'Plain Text']
    })
});

// Update the status bar later in code:
var sb = Ext.getCmp('my-status');
sb.setStatus({
    text: 'OK',
    iconCls: 'ok-icon',
    clear: true // auto-clear after a set interval
});

// Set the status bar to show that something is processing:
sb.showBusy();

// processing....

sb.clearStatus(); // once completeed

Config Options

Config OptionsDefined By
 cls : String
The base class applied to the containing element for this component on render (defaults to 'x-statusbar')
StatusBar
 cls : String
The base class applied to the containing element for this component on render (defaults to 'x-statusbar')
StatusBar

Public Properties

This class has no public properties.

Public Methods

MethodDefined By

Public Events

This class has no public events.