Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Container
        Container
          Toolbar

Class Ext.Toolbar

Package:Ext
Defined In:Toolbar.js
Class:Toolbar
Extends:Container

Toolbars are most commonly used as dockedItems within an Ext.Panel. They can be docked at the 'top' or 'bottom' of a Panel by specifying the dock config.

The defaultType of Toolbar's is 'button'.

Screenshot:

Example code:

var myToolbar = new Ext.Toolbar({
    dock : 'top',
    title: 'My Toolbar',
    items: [
        {
            text: 'My Button'
        }
    ]
});

var myPanel = new Ext.Panel({
    dockedItems: [myToolbar],
    fullscreen : true,
    html       : 'Test Panel'
});

Config Options

Config OptionsDefined By
 baseCls : String
The base CSS class to apply to the Carousel's element (defaults to 'x-toolbar').
Toolbar
 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
 defaultType : xtype
The default xtype to create. (Defaults to 'button')
Toolbar
 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
 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
 layout : Object
A layout config object. A string is NOT supported here.
Toolbar
 monitorOrientation : Boolean
Monitor Orientation change
Component
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 title : String
The title of the Toolbar.
Toolbar
 titleCls : String
The CSS class to apply to the titleEl (defaults to 'x-toolbar-title').
Toolbar
 ui : String
Style options for Toolbar. Default is 'dark'. 'light' is also available.
Toolbar
 width : Number
The width of this component in pixels.
Component

Public Properties

PropertyDefined By
 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
 titleEl : Ext.Element
The title Element
Toolbar

Public Methods

MethodDefined By

Public Events

EventDefined By