jQuery UI Widgets Forums Layouts Kanban itemAttrClicked and itemMoved

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • itemAttrClicked and itemMoved #94976



    I would like to add some action when a user clicks on a event (redirect to another page, show a modal box or do something like this), I’ve seen that there’s an event called itemAttrClicked, but it’s also fired when I move an event to another column. Is there any way to differenciatte one case (when I just click an event) and another (I move an event from one column to another).

    I hope I’ve explined myself ok.

    Thanks for all.

    itemAttrClicked and itemMoved #94994


    Hello infinitel,

    I would like to suggest you one workaround with setTimeout.
    You could use boolean flag and recognize when item is ‘moved’ or not.

    var isMoved = false;
    $('#kanban').on('itemMoved', function (event) {                
    	isMoved = true;                
    $('#kanban').on('itemAttrClicked', function (event) {
    	isMoved = false;
    	setTimeout(() => {
    		console.log('isMoved', isMoved);
    	}, 200);

    Best Regards,
    Hristo Hristov

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.