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

docs: add tree examples to documentation items #413

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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