I play with the drag and drop function for the first time, so I'm not quite sure what I am doing!
I need to add a class to the portlet while it is being dragged. I don’t want to use the clone function because I want the user to drag the actual item, I just want to assign the item while it is dragging and reset when it is deleted.
Does anyone help?
, - beforedrag ', ? , , .
jQuery UI, start " :
http://docs.jquery.com/UI/Draggable#events
, "helper" :
helper : function(ev, el) { return ($(el).clone().addClass("beingDragged")); }
, , , :)
Source: https://habr.com/ru/post/1703762/More articles:How can I poll web requests without blocking? - perlLoading the best way to notify a JS script - javascriptCreating LINK-to-SQL datalayer - code-generationWhat is the general alternative to array? - arraysWhat is the best way to create an identifier for SQL insert? - sqlHow .NET Framework Versions Support Backward Compatibility - .netПоследствия для условий sql 'OR', когда одна альтернатива тривиальна? - optimizationWhat is called this algorithm? - algorithmNHibernate: audit log using Interceptor or Triggers? - databasehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1703767/piecemeal-conversion-from-struts-to-tapestry-5&usg=ALkJrhj5PDXbkMscO75nAUVWcoDGT0JixAAll Articles