File tree Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Expand file tree Collapse file tree 2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,24 @@ Doc.prototype = {
446
446
} ) ;
447
447
} ,
448
448
449
+ html_usage_inputType : function ( dom ) {
450
+ var self = this ;
451
+ dom . h ( 'Usage' , function ( ) {
452
+ dom . code ( function ( ) {
453
+ dom . text ( '<input type="' + self . shortName + '"' ) ;
454
+ ( self . param || [ ] ) . forEach ( function ( param ) {
455
+ dom . text ( '\n ' ) ;
456
+ dom . text ( param . optional ? ' [' : ' ' ) ;
457
+ dom . text ( param . name ) ;
458
+ dom . text ( BOOLEAN_ATTR [ param . name ] ? '' : '="..."' ) ;
459
+ dom . text ( param . optional ? ']' : '' ) ;
460
+ } ) ;
461
+ dom . text ( '>' ) ;
462
+ } ) ;
463
+ self . html_usage_parameters ( dom ) ;
464
+ } ) ;
465
+ } ,
466
+
449
467
html_usage_directiveInfo : function ( dom ) {
450
468
var self = this ;
451
469
var list = [ ] ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var NUMBER_REGEXP = /^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/;
7
7
var inputType = {
8
8
9
9
/**
10
- * @ngdoc directive
10
+ * @ngdoc inputType
11
11
* @name angular.module.ng.$compileProvider.directive.input.text
12
12
*
13
13
* @description
@@ -73,7 +73,7 @@ var inputType = {
73
73
74
74
75
75
/**
76
- * @ngdoc directive
76
+ * @ngdoc inputType
77
77
* @name angular.module.ng.$compileProvider.directive.input.number
78
78
*
79
79
* @description
@@ -141,7 +141,7 @@ var inputType = {
141
141
142
142
143
143
/**
144
- * @ngdoc directive
144
+ * @ngdoc inputType
145
145
* @name angular.module.ng.$compileProvider.directive.input.url
146
146
*
147
147
* @description
@@ -206,7 +206,7 @@ var inputType = {
206
206
207
207
208
208
/**
209
- * @ngdoc directive
209
+ * @ngdoc inputType
210
210
* @name angular.module.ng.$compileProvider.directive.input.email
211
211
*
212
212
* @description
@@ -269,7 +269,7 @@ var inputType = {
269
269
270
270
271
271
/**
272
- * @ngdoc directive
272
+ * @ngdoc inputType
273
273
* @name angular.module.ng.$compileProvider.directive.input.radio
274
274
*
275
275
* @description
@@ -310,7 +310,7 @@ var inputType = {
310
310
311
311
312
312
/**
313
- * @ngdoc directive
313
+ * @ngdoc inputType
314
314
* @name angular.module.ng.$compileProvider.directive.input.checkbox
315
315
*
316
316
* @description
You can’t perform that action at this time.
0 commit comments