Hello, I trying to change the scrollbar constructor on the SectionStackSections in my SectionStack.
I have tried to change it via sectionStack.setScrollbarConstructor("myScrollbar"); but that doesn't work, and SectionStackSection has no setScrollbarConstructor method of its own since it is not based on canvas.
I also tried to change it via sectionStackSection.getSectionHeader().setScrollbarConstructor("myScrollbar"); but I got an error saying "Error :Cannot change configuration property 'scrollbarConstructor' to MyScrollbar now that component has been created."
Lastly I tried to set it in the JS of the custom SectionHeader that I am using.
What am I doing wrong?
Just to be clear, I'm talking about the vertical scrollbar that scrolls the elements inside an expanded SectionStackSection.
I have tried to change it via sectionStack.setScrollbarConstructor("myScrollbar"); but that doesn't work, and SectionStackSection has no setScrollbarConstructor method of its own since it is not based on canvas.
I also tried to change it via sectionStackSection.getSectionHeader().setScrollbarConstructor("myScrollbar"); but I got an error saying "Error :Cannot change configuration property 'scrollbarConstructor' to MyScrollbar now that component has been created."
Lastly I tried to set it in the JS of the custom SectionHeader that I am using.
Code:
isc.defineClass("MyScrollbar", "Scrollbar"); if (isc.MyScrollbar) { isc.MyScrollbar.addProperties({ baseStyle:"myScrollbar" }); } isc.defineClass("SidebarSectionItem", "SectionHeader"); if (isc.SidebarSectionItem) { isc.SidebarSectionItem.addProperties({ icon: null, iconSize: 0, baseStyle:"sidebar-section-item", titleStyle:"sidebar-section-title", showRollOver: true, [b]scrollbarConstructor: "MyScrollbar"[/b] }); }
Just to be clear, I'm talking about the vertical scrollbar that scrolls the elements inside an expanded SectionStackSection.
Comment