mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
feat(ngdocs): support for HTML table generation from docs code
This commit is contained in:
committed by
Igor Minar
parent
400f9360bb
commit
b3a62b2e19
8
src/bootstrap/bootstrap.js
vendored
8
src/bootstrap/bootstrap.js
vendored
@@ -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 {
|
||||
|
||||
@@ -15,11 +15,13 @@
|
||||
*
|
||||
* Below is a more detailed breakdown of the supported callback events provided by pre-exisitng ng directives:
|
||||
*
|
||||
* * {@link ng.directive:ngRepeat#animations ngRepeat} — enter, leave and move
|
||||
* * {@link ng.directive:ngView#animations ngView} — enter and leave
|
||||
* * {@link ng.directive:ngInclude#animations ngInclude} — enter and leave
|
||||
* * {@link ng.directive:ngSwitch#animations ngSwitch} — enter and leave
|
||||
* * {@link ng.directive:ngShow#animations ngShow & ngHide} - show and hide respectively
|
||||
* | Directive | Supported Animations |
|
||||
* |========================================================== |====================================================|
|
||||
* | {@link ng.directive:ngRepeat#animations ngRepeat} | enter, leave and move |
|
||||
* | {@link ng.directive:ngView#animations ngView} | enter and leave |
|
||||
* | {@link ng.directive:ngInclude#animations ngInclude} | enter and leave |
|
||||
* | {@link ng.directive:ngSwitch#animations ngSwitch} | enter and leave |
|
||||
* | {@link ng.directive:ngShow#animations ngShow & ngHide} | show and hide |
|
||||
*
|
||||
* You can find out more information about animations upon visiting each directive page.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user