Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit a8b2bd4

Browse files
committed
docs: add tree examples to documentation items
1 parent 11918de commit a8b2bd4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/app/shared/documentation-items/documentation-items.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ const DOCS: {[key: string]: DocCategory[]} = {
173173
'table-overview',
174174
]},
175175
]
176+
},
177+
{
178+
id: 'trees',
179+
name: 'Tree',
180+
items: [
181+
{id: 'tree', name: 'Tree', examples: ['tree-checklist', 'tree-dynamic', 'tree-loadmore']},
182+
]
176183
}
177184
],
178185
[CDK] : [
@@ -195,7 +202,7 @@ const DOCS: {[key: string]: DocCategory[]} = {
195202
items: [
196203
{id: 'stepper', name: 'Stepper', examples: []},
197204
{id: 'table', name: 'Table', examples: []},
198-
205+
{id: 'tree', name: 'Tree', examples: []}
199206
]
200207
},
201208
// TODO(jelbourn): re-add utilities and a11y as top-level categories once we can generate

src/assets/stackblitz/main.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import './polyfills';
22

33
import {CdkTableModule} from '@angular/cdk/table';
4+
import {CdkTreeModule} from '@angular/cdk/tree';
45
import {HttpClientModule} from '@angular/common/http';
56
import {NgModule} from '@angular/core';
67
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
@@ -38,6 +39,7 @@ import {
3839
MatTabsModule,
3940
MatToolbarModule,
4041
MatTooltipModule,
42+
MatTreeModule,
4143
} from '@angular/material';
4244
import {BrowserModule} from '@angular/platform-browser';
4345
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
@@ -47,6 +49,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
4749
@NgModule({
4850
exports: [
4951
CdkTableModule,
52+
CdkTreeModule,
5053
MatAutocompleteModule,
5154
MatButtonModule,
5255
MatButtonToggleModule,
@@ -79,6 +82,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
7982
MatTabsModule,
8083
MatToolbarModule,
8184
MatTooltipModule,
85+
MatTreeModule,
8286
]
8387
})
8488
export class DemoMaterialModule {}

0 commit comments

Comments
 (0)