Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(tabs): add support for x-tab-heading
- Add support for `x-tab-heading` attribute and element
  • Loading branch information
wesleycho committed Aug 10, 2015
commit 52f86477f9909873b512c08c68de43bbe15d17f2
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