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

Commit

Permalink
docs: add tree examples to documentation items
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed Mar 15, 2018
1 parent 11918de commit a8b2bd4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/shared/documentation-items/documentation-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ const DOCS: {[key: string]: DocCategory[]} = {
'table-overview',
]},
]
},
{
id: 'trees',
name: 'Tree',
items: [
{id: 'tree', name: 'Tree', examples: ['tree-checklist', 'tree-dynamic', 'tree-loadmore']},
]
}
],
[CDK] : [
Expand All @@ -195,7 +202,7 @@ const DOCS: {[key: string]: DocCategory[]} = {
items: [
{id: 'stepper', name: 'Stepper', examples: []},
{id: 'table', name: 'Table', examples: []},

{id: 'tree', name: 'Tree', examples: []}
]
},
// TODO(jelbourn): re-add utilities and a11y as top-level categories once we can generate
Expand Down
4 changes: 4 additions & 0 deletions src/assets/stackblitz/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './polyfills';

import {CdkTableModule} from '@angular/cdk/table';
import {CdkTreeModule} from '@angular/cdk/tree';
import {HttpClientModule} from '@angular/common/http';
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
Expand Down Expand Up @@ -38,6 +39,7 @@ import {
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatTreeModule,
} from '@angular/material';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
Expand All @@ -47,6 +49,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
@NgModule({
exports: [
CdkTableModule,
CdkTreeModule,
MatAutocompleteModule,
MatButtonModule,
MatButtonToggleModule,
Expand Down Expand Up @@ -79,6 +82,7 @@ import {MaterialDocsExample} from './app/material-docs-example';
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatTreeModule,
]
})
export class DemoMaterialModule {}
Expand Down

0 comments on commit a8b2bd4

Please sign in to comment.