Properties Methods Events Direct Link

Class Ext.ux.ToolbarDroppable

Package:Ext.ux
Defined In:ToolbarDroppable.js
Class:ToolbarDroppable
Extends:Object
Plugin which allows items to be dropped onto a toolbar and be turned into new Toolbar items. To use the plugin, you just need to provide a createItem implementation that takes the drop data as an argument and returns an object that can be placed onto the toolbar. Example:
new Ext.ux.ToolbarDroppable({
createItem: function(data) {
return new Ext.Button({text: data.text});
}
});
The afterLayout function can also be overridden, and is called after a new item has been created and inserted into the Toolbar. Use this for any logic that needs to be run after the item has been created.

Public Properties

PropertyDefined By
 afterLayout : Object
Called after a new button has been created and added to the toolbar. Add any required cleanup logic here
ToolbarDroppable
 dropTarget : Ext.dd.DropTarget The drop target attached to the toolbar instance
ToolbarDroppable
 toolbar : Ext.Toolbar The toolbar instance that this plugin is tied to
ToolbarDroppable

Public Methods

MethodDefined By

Public Events

This class has no public events.