I’m trying to inline a sectionStack. I’m using the inline example straight from the feature explorer and I replace the listGrid with a sectionStack and it doesn’t appear in the browser. I’m a noob - what am I doing wrong?
Cheers,
Dave
You’ll need to show your code or there’s no way to tell what might be wrong.
Thanks for getting back - I figured out how to get the sectionStack to show up in my html page. Adding a VLayout did the trick.
Here’s the code I used:
<SCRIPT>
isc.HTMLFlow.create({
ID: "adminMenuItems",
overflow: "auto",
padding:0,
contents: "<ul><li><a href=\"#\">System Settings</a></li><br>" +
"<li>Employee Admin</li><br>" +
"<li>Employee Logs</li><br>" +
"<li>Employee Alerts</li><br>" +
"<li>Site Deposit Options</li></ul>"
})
isc.HTMLFlow.create({
ID: "helpMenuItems",
overflow: "auto",
padding:0,
contents: "<ul><li><a href=\"#\">Admin Reference</a></li></ul>"
})
isc.SectionStack.create({
sections: [
{title: "Admin Menu", expanded: true, canCollapse: true, items: [ adminMenuItems ]},
{title: "Admin Help", expanded: true, canCollapse: true, items: [ helpMenuItems ]}
],
visibilityMode:"multiple",
layoutRightMargin:15,
showShadow:false,
width:185,
height: 350,
ID:"SectionStackAdmin",
layoutAlign:"right",
autoDraw:false
})
isc.VLayout.create({
members:[
SectionStackAdmin
],
height:"100%",
ID:"VLayout0",
width:"100%",
overflow:"hidden",
autoDraw:true
})
</SCRIPT>
Strange thing now. The VLayout has grabbed focus and I can’t click on any other links etc. on my html page. I tried inserting this code inside a table and inside a div tag, just after the body tag, before the body etc. but still no luck. Also the second section “Admin Help” I added exhibits odd behavior. When I click it to expand/collapse it jumps up. I’m sure it’s a simple property change somewhere but I’m missing something.
Any pointers greatly appreciated.
Cheers,
Dave
OK, I figured it out. I turned my .html file into a .jsp file and all is good.
Cheers,
Dave