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

docs: [Treeveiw Example not working] #125

Open
2 tasks done
JV-lab-create opened this issue Jan 1, 2025 · 0 comments
Open
2 tasks done

docs: [Treeveiw Example not working] #125

JV-lab-create opened this issue Jan 1, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@JV-lab-create
Copy link

JV-lab-create commented Jan 1, 2025

** Where? **

In the example in the "Treeview" section I got a error.
image

** Possible solution **

I tried to use the example on the "onSelect" event it worked until clicked on the "Child Node" but it showed this error.
image

** My Code**

Code I used for example 1
image

Code I used for example 2

image

** What I found out **

From me testing it seems like that this was the problem:

childNode.onSelect(function(self)
    basalt.debug("Node selected:", self.getText()) 
end)

The self.getText() was making the error come it says that

attempt to call method 'getText' (a nil value)

** Checklist **

@JV-lab-create JV-lab-create added the documentation Improvements or additions to documentation label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant