jQuery UI Widgets Forums Navigation Tabs Event on Close button click in jqxTabs

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Event on Close button click in jqxTabs #49602

    deepak_chaurasia
    Participant

    Hi Team,
    Is there any event which will called when i click close button on jqxTab. i need to display alert if user clicks close button on tab.

    Thanks
    Deepak Chaurasia

    Event on Close button click in jqxTabs #49606

    Dimitar
    Participant

    Hello Deepak Chaurasia,

    Here is what you need to add to your page:

    $("#jqxTabs .jqx-tabs-close-button").click(function () {
        alert("Close button clicked.");
    });
    $('#jqxTabs').on('removed', function (event) {
        $("#jqxTabs .jqx-tabs-close-button").click(function () {
            alert("Close button clicked.");
        });
    });

    Where jqxTabs is the id of your jqxTabs instance. Note that both event bindings are needed.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.