Many thanks for your answer, but the query is very complex and I don't understand it.
I don't need a query, I just want to get all the data form the backend.
And the I don't understand the syntax of the right hand side of the "items" property.
Your backend generates a response with XML, I'm using JSON.
And I don't know how the structure of the response has to be set in order to work with the menu component.
I thought it hast to be the same like the variable data (screenshot in my initial question).
And if I use
var menuOptions = {
items: ((<Object[]>e.result) as { [key: string]: Object }[]),
fields: {
text: ['category', 'value'],
children: ['options']
},
template: '#menuTemplate'
};
I do get an syntax error within Safari and Mozilla because of the bracket (<)