extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
27 lines (23 loc) • 773 B
JavaScript
/**
* This example shows how data can be exchanged between
* sources and targets.
*/
Ext.define('KitchenSink.view.drag.Data', {
extend: 'Ext.Component',
xtype: 'drag-data',
// <example>
requires: ['KitchenSink.view.drag.DataController'],
otherContent: [{
type: 'Controller',
path: 'modern/src/view/drag/DataController.js'
}],
// </example>
controller: 'drag-data',
padding: 5,
html: '<div class="data-source">' +
'<div data-days="2" class="handle">Overnight</div>' +
'<div data-days="7" class="handle">Expedited</div>' +
'<div data-days="21" class="handle">Standard</div>' +
'</div>' +
'<div class="data-target">Drop delivery option here</div>'
});