{
identifier: 'id',
label: 'label',
items: [
// Hierarchy of folders
{ type: 'folder', id: 'inbox', label:'Inbox', icon:'mailIconFolderInbox' },
{ type: 'folder', id: 'deleted', label:'Trash', icon:'mailIconTrashcanFull' },
{ type: 'folder', id: 'save', label:'Save', folders:[
{ id: 'work', label:'stuff for work'},
{ id: 'fun', label:'stuff for fun'}
]},
// Address book (list of people that have sent me messages)
{ type: 'address', id: 'adam', label: "Adam Arlen" },
{ type: 'address', id: 'bob', label: "Bob Baxter" },
{ type: 'address', id: 'carrie', label: "Carrie Crow" },
// Flat list of messages (each message lists it's folder)
{ type: 'message', id: 'node1.1', folder: 'inbox', label: "today's meeting", sender: "Adam Arlen", sent: "2005-12-19",
text: "Today's meeting is cancelled.
Let's do it tomorrow instead.
Adam" },
{ type: 'message', id: 'node1.2', folder: 'inbox', label: "remaining work", sender: "Bob Baxter", sent: "2005-12-18",
text:
"
Hey, we need to talk about who's gonna do all the left over work. Pick a day you want to meet:
" }, { type: 'message', id: 'node1.3', folder: 'inbox', label: "Hey, look!", sender: "Carrey Crown", sent: "2005-12-17", text: "This is our new simple mail app. What do you think?what color is good for the new office?
Let me know soon
" }, { type: 'message', id: 'node2.1', folder: 'deleted', label: "today's meeting", sender: "Madam Marlen", sent: "2005-12-19", text: "Today's meeting is cancelled.what color is good for the new office?
Let me know soon
" }, { type: 'message', id: 'node3.1', folder: 'work', label: "today's meeting", sender: "Bob Baxter", sent: "2005-12-19", text: "Today's meeting is cancelled.what color is good for the new office?
Let me know soon
" }, { type: 'message', id: 'node4.1', folder: 'fun', label: "today's meeting", sender: "Jack Jackson", sent: "2005-12-19", text: "Today's meeting is cancelled.Hey, we need to talk about who's gonna do all the left over work. Pick a day you want to meet:
" }, { type: 'message', id: 'node4.3', folder: 'fun', label: "lunch", sender: "Jack Jackson", sent: "2005-12-17", text: "Where do you want to go for lunch?what color is good for the new office?
Let me know soon
" }, { type: 'message', id: 'node5.1', folder: 'deleted', label: "today's meeting", sender: "Jill Jones", sent: "2005-12-19", text: "Today's meeting is cancelled.Hey, we need to talk about who's gonna do all the left over work. Pick a day you want to meet:
" }, { type: 'message', id: 'node5.3', folder: 'deleted', label: "lunch", sender: "Jill Jones", sent: "2005-12-17", text: "Where do you want to go for lunch?what color is good for the new office?
Let me know soon
" } ] }