@@ -3,7 +3,10 @@ import {
3
3
ApiInfo ,
4
4
ApiInfoComponent ,
5
5
} from '../../blueprint/api-info/api-info.component' ;
6
- import { EMPTY_API_INPUT_DEFAULT_VALUE } from '../../blueprint/api-info/api-inputs/api-inputs.component' ;
6
+ import {
7
+ EMPTY_API_INPUT_DEFAULT_VALUE ,
8
+ VOID_API_RETURN_TYPE ,
9
+ } from '../../blueprint/api-info/api-inputs/api-inputs.component' ;
7
10
import { BlueprintPageComponent } from '../../blueprint/blueprint-page/blueprint-page.component' ;
8
11
import { CommandInstallationComponent } from '../../blueprint/command-installation/command-installation.component' ;
9
12
import { ShowCaseComponent } from '../../blueprint/show-case/show-case.component' ;
@@ -49,6 +52,7 @@ export class AccordionPageComponent {
49
52
] ;
50
53
51
54
apiInfo : ApiInfo = {
55
+ reliesOn : 'https://material.angular.io/cdk/accordion/overview' ,
52
56
ariaLink : 'https://www.w3.org/WAI/ARIA/apg/patterns/accordion/' ,
53
57
entities : [
54
58
{
@@ -64,6 +68,18 @@ export class AccordionPageComponent {
64
68
default : 'false' ,
65
69
} ,
66
70
] ,
71
+ methods : [
72
+ {
73
+ name : 'closeAll' ,
74
+ returnType : VOID_API_RETURN_TYPE ,
75
+ description : 'closes all accordion-items' ,
76
+ } ,
77
+ {
78
+ name : 'openAll' ,
79
+ returnType : VOID_API_RETURN_TYPE ,
80
+ description : 'opens all accordion-items' ,
81
+ } ,
82
+ ] ,
67
83
} ,
68
84
{
69
85
name : 'AccordionItemComponent' ,
@@ -87,10 +103,46 @@ export class AccordionPageComponent {
87
103
{
88
104
name : 'expanded' ,
89
105
type : 'boolean' ,
90
- description : 'opens the accordion-item' ,
106
+ description : 'expands the accordion-item' ,
91
107
default : 'false' ,
92
108
} ,
93
109
] ,
110
+ outputs : [
111
+ {
112
+ name : 'opened' ,
113
+ value : VOID_API_RETURN_TYPE ,
114
+ description : 'emits when the accordion item is opened' ,
115
+ } ,
116
+ {
117
+ name : 'closed' ,
118
+ value : VOID_API_RETURN_TYPE ,
119
+ description : 'emits when the accordion item is closed' ,
120
+ } ,
121
+ {
122
+ name : 'destroyed' ,
123
+ value : VOID_API_RETURN_TYPE ,
124
+ description : 'emits when the accordion item is destroyed' ,
125
+ } ,
126
+ ] ,
127
+ methods : [
128
+ {
129
+ name : 'toggle' ,
130
+ description : 'toggles the accordion-item' ,
131
+ returnType : 'void' ,
132
+ params : [ ] ,
133
+ } ,
134
+ {
135
+ name : 'open' ,
136
+ description : 'opens the accordion-item' ,
137
+ returnType : 'void' ,
138
+ params : [ ] ,
139
+ } ,
140
+ {
141
+ name : 'close' ,
142
+ description : 'closes the accordion-item' ,
143
+ returnType : 'void' ,
144
+ } ,
145
+ ] ,
94
146
} ,
95
147
{
96
148
name : 'AccordionBodyComponent' ,
0 commit comments