Skip to content

Commit

Permalink
style and more html content
Browse files Browse the repository at this point in the history
  • Loading branch information
mn-42 committed Mar 4, 2024
1 parent 089c17d commit 4be34bd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
35 changes: 33 additions & 2 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,40 @@ <h1>Ngcx Tree Samples</h1>
Ngcx tree allows to render a tree and allows drag n drop only using the
&#64;angular/cdk dependency.
</p>
<p>To see the fired events open your dev tools and check console log.</p>
<p class="hint">
To see the fired events open your dev tools and check console log.
</p>
<h2>References</h2>
<ul>
<li>
Gitlab:
<a href="https://github.com/cluetec/ngcx-tree">
https://github.com/cluetec/ngcx-tree</a
>
</li>
<li>
Npm:
<a href="https://www.npmjs.com/package/&#64;cluetec/ngcx-tree"
>https://www.npmjs.com/package/&#64;cluetec/ngcx-tree</a
>
</li>
</ul>
<h2>Samples overview</h2>
<ul>
@for (sample of samples;track sample.title) {
<li>
<a [href]="'#' + sample.title">{{ sample.title }}</a>
</li>
}
</ul>

@for (sample of samples;track sample.title) {
<app-ngcx-tree-sample-viewer [sample]="sample"></app-ngcx-tree-sample-viewer>
<app-ngcx-tree-sample-viewer
[id]="sample.title"
[sample]="sample"
></app-ngcx-tree-sample-viewer>
<br />
<br />
}
<ng-template #treeNodeTemplate let-nodeWrapper="nodeWrapper">
<div class="node-container">
Expand Down
6 changes: 6 additions & 0 deletions src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.hint {
background-color: lightsalmon;
padding: 10px;
border-radius: 5px;
font-weight: bold;
}
1 change: 0 additions & 1 deletion src/app/print-methods.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class PrintMethodsPipe implements PipeTransform {

printMethods(value: any) {
let result = value;
console.log(value);
if (typeof value == 'function') {
if (value.name) {
result = value.name;
Expand Down

0 comments on commit 4be34bd

Please sign in to comment.