Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
feat(tabs): add support for x-tab-heading
Browse files Browse the repository at this point in the history
- Add support for `x-tab-heading` attribute and element

Closes #4166
Fixes #1893
  • Loading branch information
wesleycho committed Aug 10, 2015
1 parent 84cc5f0 commit 1abfd05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,13 @@ angular.module('ui.bootstrap.tabs', [])
}
};
function isTabHeading(node) {
return node.tagName && (
return node.tagName && (
node.hasAttribute('tab-heading') ||
node.hasAttribute('data-tab-heading') ||
node.hasAttribute('x-tab-heading') ||
node.tagName.toLowerCase() === 'tab-heading' ||
node.tagName.toLowerCase() === 'data-tab-heading'
node.tagName.toLowerCase() === 'data-tab-heading' ||
node.tagName.toLowerCase() === 'x-tab-heading'
);
}
})
Expand Down

0 comments on commit 1abfd05

Please sign in to comment.