function renderTabs(fragment, tabsList) {
    var wrapper = $('<div \>', { 'class': 'd-flex align-items-start w-100' });
    var tabList = $('<div \>', {
            'class': 'nav flex-column nav-pills me-4',
            'id':'vtablist',
            'role': 'tablist',
            'aria-orientation': 'vertical'
        });
    var tabContent = $('<div \>', { 'class': 'tab-content flex-column w-75', 'id': 'vtabcontent' });
    var tabIndex = 0;
    tabsList.forEach((tab) => {
        var button = $('<button />', {
                'class': 'nav-link',
                'id' :`tab${tabIndex}-button`,
                'data-bs-toggle': 'pill',
                'data-bs-target': `#tab${tabIndex}`,
                'type': 'button',
                'role': 'tab',
                'aria-controls': `tab${tabIndex}`,
                'aria-selected': 'false'
            }).text(tab.name);
        var pane = $('<div />', {
                'class': 'tab-pane fade',
                'id': `tab${tabIndex}`,
                'role': 'tabpanel',
                'aria-labelledby': `tab${tabIndex}-button`
            });
        pane.append(tab.content);
        tabList.append(button);
        tabContent.append(pane);
        tabIndex++;
    });
    wrapper.append(tabList);
    wrapper.append(tabContent);
    wrapper.appendTo(fragment);
}
/**
 * Create a new bootstrap tab
 * @param {Object} fragment HTML Fragment that will be rendered to.
 * @param {Array} tabsList List of Tabs objects
 */
Create a new bootstrap tab
@param {Object} fragment HTML Fragment that will be rendered to.
@param {Array} tabsList List of Tabs objects
Create a new bootstrap tab @param { Object } fragment HTML Fragment that will be rendered to . @param { Array } tabsList List of Tabs objects
function renderTabs(fragment, tabsList) {
    var wrapper = $('<div \>', { 'class': 'd-flex align-items-start w-100' });
    var tabList = $('<div \>', {
            'class': 'nav flex-column nav-pills me-4',
            'id':'vtablist',
            'role': 'tablist',
            'aria-orientation': 'vertical'
        });
    var tabContent = $('<div \>', { 'class': 'tab-content flex-column w-75', 'id': 'vtabcontent' });
    var tabIndex = 0;
    tabsList.forEach((tab) => {
        var button = $('<button />', {
                'class': 'nav-link',
                'id' :`tab${tabIndex}-button`,
                'data-bs-toggle': 'pill',
                'data-bs-target': `#tab${tabIndex}`,
                'type': 'button',
                'role': 'tab',
                'aria-controls': `tab${tabIndex}`,
                'aria-selected': 'false'
            }).text(tab.name);
        var pane = $('<div />', {
                'class': 'tab-pane fade',
                'id': `tab${tabIndex}`,
                'role': 'tabpanel',
                'aria-labelledby': `tab${tabIndex}-button`
            });
        pane.append(tab.content);
        tabList.append(button);
        tabContent.append(pane);
        tabIndex++;
    });
    wrapper.append(tabList);
    wrapper.append(tabContent);
    wrapper.appendTo(fragment);
}
function renderTabs ( fragment , tabsList ) { var wrapper = $ ( '<div \>' , { 'class' : 'd-flex align-items-start w-100' } ) ; var tabList = $ ( '<div \>' , { 'class' : 'nav flex-column nav-pills me-4' , 'id' : 'vtablist' , 'role' : 'tablist' , 'aria-orientation' : 'vertical' } ) ; var tabContent = $ ( '<div \>' , { 'class' : 'tab-content flex-column w-75' , 'id' : 'vtabcontent' } ) ; var tabIndex = 0 ; tabsList . forEach ( ( tab ) => { var button = $ ( '<button />' , { 'class' : 'nav-link' , 'id' : ` ${ tabIndex } ` , 'data-bs-toggle' : 'pill' , 'data-bs-target' : ` ${ tabIndex } ` , 'type' : 'button' , 'role' : 'tab' , 'aria-controls' : ` ${ tabIndex } ` , 'aria-selected' : 'false' } ) . text ( tab . name ) ; var pane = $ ( '<div />' , { 'class' : 'tab-pane fade' , 'id' : ` ${ tabIndex } ` , 'role' : 'tabpanel' , 'aria-labelledby' : ` ${ tabIndex } ` } ) ; pane . append ( tab . content ) ; tabList . append ( button ) ; tabContent . append ( pane ) ; tabIndex ++ ; } ) ; wrapper . append ( tabList ) ; wrapper . append ( tabContent ) ; wrapper . appendTo ( fragment ) ; }
Create a new bootstrap tab
 @param {Object} fragment HTML Fragment that will be rendered to.
Create a new bootstrap tab @param { Object } fragment HTML Fragment that will be rendered to .