I am a newbie to sencha touch and we app. I have a scenario like I am getting the json response as shown in the example json response below. now i want to display the menu item as a header of the list and the sub menu item as the list content.
here is my json response:
{
"menuname": "menu",
"menugroup": 0,
"submenuitems":
[
{
"menuname": "Time",
"menugroup": 0,
"submenuitems":
[
{
"menuname": "Time1",
"menugroup": 1,
"submenuitems":
[
]
},
{
"menuname": "Time2",
"menugroup": 1,
"submenuitems":
[
]
},
{
"menuname": "Time3",
"menugroup": 1,
"submenuitems":
[
]
}
]
},
{
"menuname": "Date",
"menugroup": 0,
"submenuitems":
[
{
"menuname": "Date1",
"menugroup": 1,
"submenuitems":
[
]
}
]
},
{
"menuname": "Month",
"menugroup": 0,
"submenuitems":
[
{
"menuname": "Month1",
"menugroup": 1,
"submenuitems":
[
]
},
{
"menuname": "Month2",
"menugroup": 1,
"submenuitems":
[
]
},
{
"menuname": "Month3",
"menugroup": 1,
"submenuitems":
[
]
}
]
},
{
"menuname": "Year",
"menugroup": 0,
"submenuitems":
[
]
}
]
}
List should be like:
- Time -header
- Time1
- Time2
- Time3
- Date - header
- Date1
- Month -header
- month1
- month2
- month3
- Year - Header
Please, can anyone help me learn how to do this in sencha touch?