PDA

View Full Version : Embed panel/html within a nested list



eriklarsson
30 Nov 2010, 5:52 AM
Hi all,

How would one go about embedding a panel on the last level of a nested list?



items: [{
text: mt.t('Drinks'),
items: [{
text: mt.t('Water'),
items: [{
html: 'This I want to render as a "page"',
}]
},{
text: mt.t('Coffee'),
leaf: true
},{
text: mt.t('Espresso'),
leaf: true
},{
text: mt.t('Redbull'),
leaf: true
},{
text: mt.t('Coke'),
leaf: true
},{
text: mt.t('Diet Coke'),
leaf: true
}]


Thankful for some pointers on this,
Erik

evant
30 Nov 2010, 2:51 PM
Use the getDetailCard method.

porticue
1 Dec 2010, 6:49 AM
So I looked into the getDetailCard method and I see kinda what it's doing, but how would your data store look if you wanted the terminating card to display a paragraph of text. Thanks