Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it can same event call ? '@node:selected' #116

Open
FactAttacker opened this issue Apr 23, 2019 · 5 comments
Open

it can same event call ? '@node:selected' #116

FactAttacker opened this issue Apr 23, 2019 · 5 comments

Comments

@FactAttacker
Copy link

hello !
this is good library!
I'm not very good at English ! Please acknowledge.

ex)
<tree
...
@node:seleted="getSeletedData"
/>

data(){
return{
isNodeClicker:0;
}
},
method:{
getSeletedData(node){
++this.isNodeClicker ;
},
}

This does not apply when it choose the same thing.

@amsik
Copy link
Owner

amsik commented Apr 23, 2019

Hi. Please check: https://jsfiddle.net/gjmou9fa/

@FactAttacker
Copy link
Author

Thanks for the answer!!!

But ..[ https://jsfiddle.net/gjmou9fa/ ] Not resolved

current
ex)
ltem2 (click) -> ltem2 (click) -> ltem2 (click)

  • log
    [ Item2]

but what I want
ex)
ltem2 (click) -> ltem2 (click) -> ltem2 (click)

  • log
    [ Item2]
    [ Item2]
    [ Item2]

I need click event

Is it impossible?

And thanks for the quick answer.

@amsik
Copy link
Owner

amsik commented Apr 23, 2019

I've added a new event: node:clicked. You can try it in the new version (0.2.54)

@FactAttacker
Copy link
Author

Wow!! thanks !!
I did not know you would do this.
I got a new version and this is good.

if you are not uncomfortable..
can I ask for an issue from time to time?

@amsik
Copy link
Owner

amsik commented Apr 24, 2019

Yeah, sure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants