Hi Tony,
You were originally asking how to add scrollbars to each section stack item, to allow the user to scroll every element of the section stack into view.
To achieve this with your code below, you have 2 options:
1: make the entire section stack scrollable by setting overflow:“auto”. Like this:
isc.SectionStack.create({
overflow:"auto",
visibilityMode:"multiple",
animateSections:true,
align:"bottom",
width:"100%",
sections:[
{autoShow:true, title:"Summary", items:[ summaryForm],
ID:"summarySectionStackSection",icon:"summary.png" },
{autoShow:false, title:"Assets", items:[ assetsForm ],
ID:"AssetsSectionStackSection",icon:"asset.png" },
{autoShow:false, title:"Transactions",
items:[transactionsForm],
ID:"TransactionsSectionStackSection",icon:"transactions.png"},
{autoShow:false, title:"Reports",
items:[reportsForm],id:"ReportsSectionStackSection",
icon:"reports.png "},
{autoShow:false, title:"News and Commentary",
items:[newsandcommentaryForm],
ID:"NewsAndCommentarySectionStackSection",icon:"o pener.png"}
],
showResizeBar:false,
ID:"contentWindowSectionStack"
});
The other approach is to make each section in the stack scrollable. You can achieve this by similarly setting ‘overflow:“auto”’ on the top level item in each section - so summaryForm, assetsForm, transactionsForm and so on would all be overflow:“auto”.
You’re now asking about how to change the sectionItem’s icon. You can achieve this by setting the “icon” property in your section definition blocks.
You’ve already applied this property so should be seeing custom icons showing up (or if no media is available for the icons, the ‘broken image’ indicator).
The URL for the icon will be derived from this icon property, with “_closed” or “_opened” appended to it to show the open state of the section. So your “summary.png” specification means you’ll need media for “summary_opened.png” and “summary_closed.png”.
Take a look at the documentation for the icon property for more information on this: [here]
Thanks
Isomorphic Software