File tree Expand file tree Collapse file tree 3 files changed +7
-44
lines changed Expand file tree Collapse file tree 3 files changed +7
-44
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { Component } from '@angular/core' ;
10
+ import { EXAMPLE_COMPONENTS } from '@angular/material-examples' ;
10
11
11
12
12
13
@Component ( {
13
14
moduleId : module . id ,
14
15
templateUrl : 'table-demo.html' ,
15
16
} )
16
17
export class TableDemo {
17
- examples = [
18
- 'table-basic' ,
19
- 'table-basic-flex' ,
20
- 'cdk-table-basic' ,
21
- 'cdk-table-basic-flex' ,
22
- 'table-dynamic-columns' ,
23
- 'table-filtering' ,
24
- 'table-footer-row' ,
25
- 'table-http' ,
26
- 'table-overview' ,
27
- 'table-pagination' ,
28
- 'table-row-context' ,
29
- 'table-selection' ,
30
- 'table-sorting' ,
31
- 'table-expandable-rows' ,
32
- 'table-sticky-header' ,
33
- 'table-sticky-columns' ,
34
- 'table-sticky-footer' ,
35
- 'table-sticky-complex' ,
36
- 'table-sticky-complex-flex' ,
37
- ] ;
18
+ examples = Object . keys ( EXAMPLE_COMPONENTS )
19
+ . filter ( example => example . startsWith ( 'table-' ) || example . startsWith ( 'cdk-table-' ) ) ;
38
20
}
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { Component } from '@angular/core' ;
10
+ import { EXAMPLE_COMPONENTS } from '@angular/material-examples' ;
10
11
11
12
@Component ( {
12
13
moduleId : module . id ,
13
14
selector : 'tabs-demo' ,
14
15
templateUrl : 'tabs-demo.html' ,
15
16
} )
16
17
export class TabsDemo {
17
- examples = [
18
- 'tab-group-basic' ,
19
- 'tab-group-dynamic-height' ,
20
- 'tab-group-stretched' ,
21
- 'tab-group-async' ,
22
- 'tab-group-custom-label' ,
23
- 'tab-group-header-below' ,
24
- 'tab-group-theme' ,
25
- 'tab-group-lazy-loaded' ,
26
- 'tab-group-dynamic' ,
27
- 'tab-nav-bar-basic' ,
28
- ] ;
18
+ examples = Object . keys ( EXAMPLE_COMPONENTS ) . filter ( example => example . startsWith ( 'tab-' ) ) ;
29
19
}
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
import { Component } from '@angular/core' ;
9
+ import { EXAMPLE_COMPONENTS } from '@angular/material-examples' ;
9
10
10
11
@Component ( {
11
12
moduleId : module . id ,
12
13
selector : 'tooltip-demo' ,
13
14
templateUrl : 'tooltip-demo.html' ,
14
15
} )
15
16
export class TooltipDemo {
16
- examples = [
17
- 'tooltip-overview' ,
18
- 'tooltip-position' ,
19
- 'tooltip-disabled' ,
20
- 'tooltip-message' ,
21
- 'tooltip-delay' ,
22
- 'tooltip-manual' ,
23
- 'tooltip-modified-defaults' ,
24
- 'tooltip-auto-hide' ,
25
- 'tooltip-custom-class' ,
26
- ] ;
17
+ examples = Object . keys ( EXAMPLE_COMPONENTS ) . filter ( example => example . startsWith ( 'tooltip-' ) ) ;
27
18
}
You can’t perform that action at this time.
0 commit comments