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

Is it possible to insert root item? #10

Open
anthonychwong opened this issue Nov 22, 2021 · 3 comments
Open

Is it possible to insert root item? #10

anthonychwong opened this issue Nov 22, 2021 · 3 comments

Comments

@anthonychwong
Copy link

The read me mentions these method in controller to insert nodes but they all seems need a parent. Is it possible to insert items at root level?

_controller.insertAtFront(dataNode, newNode);
//_controller.insertAtRear(dataNode, newNode);
//_controller.insertAtIndex(1, dataNode, newNode);
@gmckesey
Copy link

gmckesey commented Jan 5, 2023

I have the very same question. @anthonychwong did you manage to figure out how to add a root node?

@BOBMAXIMUS
Copy link

Hi, im facing the same issue, got an idea of a solution? @anthonychwong @gmckesey

@lixp185
Copy link
Collaborator

lixp185 commented Nov 15, 2023 via email

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

4 participants