Hi!
We are using SchedulerPanel the integration they did for extjs with modern, version 7.
We have created a column with a button inside source, which we want to drag to create an event. I have used the modern Extjs classes for Ext.drag.Source for this functionality.
But when you drag it, it stays inside the column and does not go outside.
- I have used the z-index property, but it is not able to get out of the defined shape when dragging
Attached image
{ xtype : 'schedulerpanel', itemId:'schedulerPanel', id:'schedulerPanel', flex:1, barMargin : 0, rowHeight:30, eventStore : { readUrl : '/siada/app/data/events.json', autoLoad : true }, resourceStore : { readUrl : '/siada/app/data/resources.json', autoLoad : true }, ................. columns : [ { .... }, { text : 'Vehículo', field: 'name_vehiculo', width : 90, htmlEncode:false, type:'widget', widgets:[{ type : 'button', cls : 'siada-task-car-button', style:{ position:'absolute', 'z-index': 80000 },
onClick : ({ source : btn, view:view, d:d, e:e, f:f, g:g },a,b,c) => { const { record } = btn.cellInfo;
this.horizontalSource = new Ext.drag.Source({ element:btn.currentElement, constrain: { element: schedulerPanel.childNodes, } }); }, //The call to defined methods does not work, is it necessary to define it within SchedulerPanel? onWidgetDragStart:'prueba', afterRender:'pruebaAfter' }], //The call to defined methods does not work, is it necessary to define it within SchedulerPanel? listeners:{ onWidgetDragStart:'prueba', }, }
*Can this functionality be done inside SchedulerPanel?
(It would be inside the column of SchedulerPanel not using an outside Grid of scheduler)
*Is there an example?
Thank you very much for your help.