Skip to content

Commit

Permalink
feat(tree-view): fixes from pr review
Browse files Browse the repository at this point in the history
  • Loading branch information
guilnorth committed Sep 1, 2023
1 parent 6abc938 commit 4c4d642
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export class PoTreeViewBaseComponent {

private _items: Array<PoTreeViewItem> = [];
private _selectable: boolean = false;
private _maxLevel = poTreeViewMaxLevel;

/**
* Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente.
Expand Down Expand Up @@ -98,7 +99,6 @@ export class PoTreeViewBaseComponent {
return this._selectable;
}

private _maxLevel = poTreeViewMaxLevel;
/**
* @optional
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnIn

ngOnChanges(changes?: SimpleChanges) {
if (changes?.['inputedItems']) {
// Chama o set items
this.items = this.inputedItems;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<po-divider p-label="Po Tree View Config"></po-divider>

<div class="po-row">
<po-input class="po-md-4" name="level" [(ngModel)]="maxLevel" p-label="Nível máximo"> </po-input>
<po-input class="po-md-4" name="level" [(ngModel)]="maxLevel" p-label="Max Level"> </po-input>
</div>

<po-divider p-label="Po Tree View Item"></po-divider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class SamplePoTreeViewLabsComponent implements OnInit {
this.itemProperties = [];
this.selectable = undefined;
this.treeViewItem = <any>{};
this.maxLevel = 4;
}

private getTreeViewItemNode(items: Array<PoTreeViewItem>, value: string) {
Expand Down

0 comments on commit 4c4d642

Please sign in to comment.