jQuery UI Widgets Forums Navigation Tabs Getting Tab position, Id or Title before removal

This topic contains 2 replies, has 2 voices, and was last updated by  mesken 11 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • mesken
    Participant

    Hi Team,

    I want to get the Tab Id, position or title when it is removed.
    If I do this
    $(‘#jqxTabs’).on(‘removed’, function (event) {

    var position = event.args.item;

    });

    I will not be able to find the Id based on this position because the Tab will have alreday been removed

    OR

    Is it possible to get a Tab new position after dragEnd ? This can help me also to keep tabs positions in an Array with the corresponding ID each time a tab is adedd or moved from one position to another, so I can match the deleted position with the Id when I tab is removed

    Because my Goal is to get the Tab Id when it is removed

    Thanks


    Dimitar
    Participant

    Hello mesken,

    The removed tab’s position is contained in event.args.item and its label in event.args.title.

    In the dragEnd event, the new position is contained in event.args.dropIndex and the old position in event.args.item.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    mesken
    Participant

    OK, thank you very much

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

You must be logged in to reply to this topic.