Skip to content

docs: [Treeveiw Example not working] #125

Open
@JV-lab-create

Description

@JV-lab-create

** 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 **

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions