diff --git a/projects/go-lib/src/lib/components/go-tree/go-tree.component.html b/projects/go-lib/src/lib/components/go-tree/go-tree.component.html index 697d172a0..41f3d9691 100644 --- a/projects/go-lib/src/lib/components/go-tree/go-tree.component.html +++ b/projects/go-lib/src/lib/components/go-tree/go-tree.component.html @@ -1,20 +1,23 @@ - +
+ class="go-tree-node-item__expander" + [icon]="node.expanded ? 'expand_more' : 'expand_less'" + (click)="node.expanded = !node.expanded" + *ngIf="node?.children"> + {{ node.name }}
- +
- + diff --git a/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.html b/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.html index 41cc91e4e..df141fcd1 100644 --- a/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.html +++ b/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.html @@ -1,5 +1,5 @@
-

{{ pageTitle }}

+

Tree

@@ -39,14 +39,14 @@

Default

-
-

Code

- -

View

+
+

Code

+ +
diff --git a/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.ts b/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.ts index 9c4079199..c8f4e4aca 100644 --- a/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.ts +++ b/projects/go-style-guide/src/app/features/ui-kit/components/tree-docs/tree-docs.component.ts @@ -6,7 +6,6 @@ import { GoTreeNodeConfig } from 'projects/go-lib/src/public_api'; templateUrl: './tree-docs.component.html' }) export class TreeDocsComponent { - readonly pageTitle: string = 'Tree'; readonly componentBindings: string = ` @Input() nodeConfig: GoTreeNodeConfig[];