I was wondering if anyone has ever worked with wijmo components?
What i am trying to do is to start from the root element of a wijmo tree, and traverse all the elements and return them as a tree structure.
thank you,
krizD
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best way to do it would be to traverse the DOM using a recursive function on the li tags. Then turn it into JSON as a “tree object”.
You can get the root level elements to begin your recursive function like so: