Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SectionStackSection scrollbar constructor

$
0
0
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.

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,
                                scrollbarConstructor: "MyScrollbar"
                        });
                }

What am I doing wrong?

Just to be clear, I'm talking about the vertical scrollbar that scrolls the elements inside an expanded SectionStackSection.

Viewing all articles
Browse latest Browse all 4756

Trending Articles