inspirsea / tree-ngx

A highly customizable Angular Tree Component usable with minimal implementation
http://emilsunesson.com/code/tree-ngx-intro
MIT License
22 stars 7 forks source link

Hi , I am not able to use selectedItem event #11

Closed vinayakshettar closed 2 years ago

vinayakshettar commented 2 years ago

Hi I am using user library for angualar 12. I am not sure if it supports ... When click on checkbox SelectedItem event fires.. but item value does not have selected item. (1) [undefined] 0:undefined

length:1

SelectedItem(item: any) {

this.data.next([item.name]);

}

<tree-ngx #treeRef [nodeItems]="nodeItems" (selectedItems)="SelectedItem($event)" [options]="options" [callbacks]="treecallbacks">

inspirsea commented 2 years ago

Hi i can't reproduce your problem can you provide a minimal code example or additional information.

vinayakshettar commented 2 years ago

Hello ,I found awork around .. Its working fine ..thank you

Chandrakanta30 commented 1 year ago

//htm

<tree-ngx #treeRef [nodeItems]="controllersList" (selectedItems)="SelectedItemEvent($event)" [options]="options"

//ts SelectedItemEvent(event:any){ console.log(event);

}
the selected items is not working not giving any outputs
inspirsea commented 1 year ago

Set alwaysEmitSelected

Chandrakanta30 commented 1 year ago

The function all values as undefined

On Tue, 13 Jun 2023 at 2:32 AM, Emil Sunesson @.***> wrote:

Set alwaysEmitSelected

— Reply to this email directly, view it on GitHub https://github.com/inspirsea/tree-ngx/issues/11#issuecomment-1588095794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKIWM2XG7JVCUFUX2S3XHRLXK57XJANCNFSM5OKPNN6A . You are receiving this because you commented.Message ID: @.***>

Chandrakanta30 commented 1 year ago

after setting alwaysemitselected is always emmiting undefinded value