Ext.data.JsonP.Ext_ux_ToolbarDroppable({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":[],"members":{"event":[],"property":[{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"property","name":"dropTarget","id":"property-dropTarget"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"property","name":"toolbar","id":"property-toolbar"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"addDDGroup","id":"method-addDDGroup"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"afterLayout","id":"method-afterLayout"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"calculateEntryIndex","id":"method-calculateEntryIndex"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"canDrop","id":"method-canDrop"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"createDropTarget","id":"method-createDropTarget"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"createItem","id":"method-createItem"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"init","id":"method-init"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"notifyDrop","id":"method-notifyDrop"},{"meta":{},"owner":"Ext.ux.ToolbarDroppable","tagname":"method","name":"notifyOver","id":"method-notifyOver"}],"css_mixin":[],"cfg":[]},"tagname":"class","extends":null,"html":"

Files

Plugin which allows items to be dropped onto a toolbar and be turned into new Toolbar items.\nTo use the plugin, you just need to provide a createItem implementation that takes the drop\ndata as an argument and returns an object that can be placed onto the toolbar. Example:

\n\n
Ext.create('Ext.ux.ToolbarDroppable', {\n  createItem: function(data) {\n    return Ext.create('Ext.Button', {text: data.text});\n  }\n});\n
\n\n\n

The afterLayout function can also be overridden, and is called after a new item has been\ncreated and inserted into the Toolbar. Use this for any logic that needs to be run after\nthe item has been created.

\n
Defined By

Properties

Ext.ux.ToolbarDroppable
view source
dropTarget : Ext.dd.DropTarget

The drop target attached to the toolbar instance

\n

The drop target attached to the toolbar instance

\n
Ext.ux.ToolbarDroppable
view source
toolbar : Ext.toolbar.Toolbar

The toolbar instance that this plugin is tied to

\n

The toolbar instance that this plugin is tied to

\n
Defined By

Methods

Ext.ux.ToolbarDroppable
view source
new( Object config ) : Object
...
\n

Parameters

Returns

Ext.ux.ToolbarDroppable
view source
( String ddGroup )
Adds the given DD Group to the drop target ...

Adds the given DD Group to the drop target

\n

Parameters

  • ddGroup : String

    The DD Group

    \n
Ext.ux.ToolbarDroppable
view source
( )
Called after a new button has been created and added to the toolbar. ...

Called after a new button has been created and added to the toolbar. Add any required cleanup logic here

\n
Calculates the location on the toolbar to create the new sorter button based on the XY of the\ndrag event ...

Calculates the location on the toolbar to create the new sorter button based on the XY of the\ndrag event

\n

Parameters

Returns

  • Number

    The index at which to insert the new button

    \n
Ext.ux.ToolbarDroppable
view source
( Object data ) : Boolean
Returns true if the drop is allowed on the drop target. ...

Returns true if the drop is allowed on the drop target. This function can be overridden\nand defaults to simply return true

\n

Parameters

  • data : Object

    Arbitrary data from the drag source

    \n

Returns

  • Boolean

    True if the drop is allowed

    \n
Ext.ux.ToolbarDroppable
view source
( )
Creates a drop target on the toolbar ...

Creates a drop target on the toolbar

\n
Ext.ux.ToolbarDroppable
view source
( Object data ) : Mixed
Creates the new toolbar item based on drop data. ...

Creates the new toolbar item based on drop data. This method must be implemented by the plugin instance

\n

Parameters

  • data : Object

    Arbitrary data from the drop

    \n

Returns

  • Mixed

    An item that can be added to a toolbar

    \n
Ext.ux.ToolbarDroppable
view source
( Ext.toolbar.Toolbar toolbar )
Initializes the plugin and saves a reference to the toolbar ...

Initializes the plugin and saves a reference to the toolbar

\n

Parameters

Ext.ux.ToolbarDroppable
view source
( Object dragSource, Object event, Object data )
Called when the drop has been made. ...

Called when the drop has been made. Creates the new toolbar item, places it at the correct location\nand calls the afterLayout callback.

\n

Parameters

Ext.ux.ToolbarDroppable
view source
( Object dragSource, Object event, Object data ) : String
Custom notifyOver method which will be used in the plugin's internal DropTarget ...

Custom notifyOver method which will be used in the plugin's internal DropTarget

\n

Parameters

Returns

","subclasses":[],"name":"Ext.ux.ToolbarDroppable","alternateClassNames":[],"inheritdoc":null,"files":[{"href":"ToolbarDroppable.html#Ext-ux-ToolbarDroppable","filename":"ToolbarDroppable.js"}],"html_meta":{},"singleton":false,"id":"class-Ext.ux.ToolbarDroppable","statics":{"property":[],"event":[],"css_var":[],"method":[],"css_mixin":[],"cfg":[]},"requires":[]});