code: function(node) {
              var $activeTab = $(node);
              var data = $($activeTab).data('cfw.tab');
              if (data) {
                  var $activePane = data.$target;
                  var $paneContainer = $activePane.closest('.tab-content');
                  $paneContainer.find('[data-cfw="collapse"]').each(function() {
                      $(this).one('afterHide.cfw.collapse', function(e) {
                              e.stopPropagation();
                              e.preventDefault();
                          })
                          .CFW_Collapse('hide');
                  });
  
                  var $collapseItem = $activePane.find('[data-cfw="collapse"]');
                  $collapseItem.one('afterShow.cfw.collapse', function(e) {
                          e.stopPropagation();
                          e.preventDefault();
                      })
                      .CFW_Collapse('show');
              }
          }
docs: Open the collapse element in the active panel Closes all related collapse items first