mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-3763] fixed subscription for node child and invalid node id (#3991)
* [ADF-3763] fixed subscription for node child and invalid node id * [ADF-3763] removed fdescribe * [ADF-3763] added line for updating documentation
This commit is contained in:
@@ -25,10 +25,21 @@ import { Component } from '@angular/core';
|
||||
export class TreeViewSampleComponent {
|
||||
|
||||
clickedNodeName: string = '';
|
||||
errorMessage = '';
|
||||
|
||||
nodeIdSample: string = '-my-';
|
||||
|
||||
onClick(node) {
|
||||
this.clickedNodeName = node.entry.name;
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.clickedNodeName = '';
|
||||
this.errorMessage = '';
|
||||
}
|
||||
|
||||
onErrorOccurred(error) {
|
||||
this.clickedNodeName = '';
|
||||
this.errorMessage = error;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user