aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/bootstrap.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-04-29 15:20:10 -0400
committerIgor Minar2013-04-29 17:47:53 -0400
commitcf38d8c55b6c18f41bb559016005627671e7d795 (patch)
tree5975bf92e92a7ccc3015e7b3eb9f83afb563ab8a /src/bootstrap/bootstrap.js
parentb0233a33a1c56ef6c775545f36f6e086def98795 (diff)
downloadangular.js-cf38d8c55b6c18f41bb559016005627671e7d795.tar.bz2
feat(ngdocs): support for HTML table generation from docs code
Diffstat (limited to 'src/bootstrap/bootstrap.js')
-rw-r--r--src/bootstrap/bootstrap.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.js b/src/bootstrap/bootstrap.js
index d21ed941..c9719b0c 100644
--- a/src/bootstrap/bootstrap.js
+++ b/src/bootstrap/bootstrap.js
@@ -143,6 +143,14 @@ directive.tabbable = function() {
};
};
+directive.table = function() {
+ return {
+ restrict: 'E',
+ link: function(scope, element, attrs) {
+ element[0].className = 'table table-bordered table-striped code-table';
+ }
+ };
+};
directive.tabPane = function() {
return {