jQWidgets Forums

jQuery UI Widgets Forums Navigation Tabs showCloseButtonAt not work for dynamatically created tab

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 8 months ago.

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

  • wureka
    Participant

    My script:

    
    compareResultTabId = -1;
    $('#jqxTabs').jqxTabs({ width: '100%', height: '100%', position: 'bottom'});
    $('#jqxTabs').on('add', function(event) {
        compareResultTabId = event.args.item;
        $('#jqxTabs').jqxTabs('showCloseButtonAt', compareResultTabId);
    });
    
    $('#jqxTabs').jqxTabs('addLast', 'CompareLast', '<div id="compareResult">Test content</div>');
    
    

    My HTML:

    
        <div id='jqxTabs'>
            <ul>
                <li>&nbsp;</li>
    
            </ul>
            <div>
                <div id="productBom" style="margin-left: 2px; margin-top: 2px;">
                </div>
            </div>
    
        </div>
    

    My problem:
    The second tab (CompareResult)’s tabId is 1, and it doesn’t show close button


    ivailo
    Participant

    Hi wureka,

    Thanks for the feedback. We will investigate the problem.
    An option to solve your problem is to set showCloseButtons:true.

    Best Regards,
    Ivailo Ivanov

    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.