@@ -55,6 +55,7 @@ declare const alertify: any;
5555 (nodeRemoved)="onNodeRemoved($event)"
5656 (nodeRenamed)="onNodeRenamed($event)"
5757 (nodeSelected)="onNodeSelected($event)"
58+ (nodeUnselected)="onNodeUnselected($event)"
5859 (nodeMoved)="onNodeMoved($event)"
5960 (nodeCreated)="onNodeFFSCreated($event)"
6061 (nodeExpanded)="onNodeExpanded($event)"
@@ -66,6 +67,7 @@ declare const alertify: any;
6667 <div class="tree-controlls">
6768 <p class="notice">Tree API exposed via TreeController</p>
6869 <button button (click)="handleActionOnFFS(13, 'select')">Select 'boot' node</button>
70+ <button button (click)="handleActionOnFFS(13, 'unselect')">Unselect 'boot' node</button>
6971 <button button (click)="handleActionOnFFS(13, 'allowSelection')">Allow selection of the 'boot' node</button>
7072 <button button (click)="handleActionOnFFS(13, 'forbidSelection')">Forbid selection of the 'boot' node</button>
7173 <button button (click)="handleActionOnFFS(2, 'collapse')">Collapse 'bin' node</button>
@@ -312,9 +314,6 @@ export class AppComponent implements OnInit {
312314 {
313315 value : 'boot' ,
314316 id : 13 ,
315- settings : {
316- selectionAllowed : false
317- } ,
318317 children : [
319318 {
320319 value : 'grub' ,
@@ -615,6 +614,10 @@ export class AppComponent implements OnInit {
615614 AppComponent . logEvent ( e , 'Selected' ) ;
616615 }
617616
617+ public onNodeUnselected ( e : NodeEvent ) : void {
618+ AppComponent . logEvent ( e , 'Unselected' ) ;
619+ }
620+
618621 public onMenuItemSelected ( e : MenuItemSelectedEvent ) {
619622 AppComponent . logEvent ( e , `You selected ${ e . selectedItem } menu item` ) ;
620623 }
0 commit comments