Hi
I'm trying to create custom scrollbar with my own images and style.
My project is separated into modules and i want to make this custom style only for one of them.
To change scrollbar background color and images i've created new class MyScrollbar with vSrc and hSrc path set to my custom images and set MyScrollbar as scrollbarConstructor to all layouts in my module
That works just fine!
My question is - IS THERE ANY WAY TO CHANGE SCROLL THUMB STYLE ?
As i mentioned above - this style can be applied only to few canvases and layouts so cannot change vSrc and hSrc for ScrollThumb class
I've noticed that Scrollbar class has two variables with thumb class name: vThumbClass and hThumbClass
I've tried to create my ScrollThumb classes
and change value of vThumbClass, and hThumbClass in MyScrollbar but after refreshing page got an error:
app checked at IE, Firefox and Chrome - same problem
SmartGWT 4.0
any change to make it work?
PLEASE HELP !
I'm trying to create custom scrollbar with my own images and style.
My project is separated into modules and i want to make this custom style only for one of them.
To change scrollbar background color and images i've created new class MyScrollbar with vSrc and hSrc path set to my custom images and set MyScrollbar as scrollbarConstructor to all layouts in my module
Code:
isc.defineClass("MyScrollbar","Scrollbar"); isc.MyScrollbar.addProperties({ backgroundColor:"transparent", vSrc:"images/Scrollbar/vscroll.png", hSrc:"images/Scrollbar/hscroll.png" })
My question is - IS THERE ANY WAY TO CHANGE SCROLL THUMB STYLE ?
As i mentioned above - this style can be applied only to few canvases and layouts so cannot change vSrc and hSrc for ScrollThumb class
I've noticed that Scrollbar class has two variables with thumb class name: vThumbClass and hThumbClass
I've tried to create my ScrollThumb classes
Code:
isc.defineClass("MyHScrollThumb ","HScrollThumb") isc.MyHScrollThumb .addProperties({ hSrc:"images/Scrollbar/hthumb.png" }) isc.defineClass("MyVScrollThumb ","VScrollThumb") isc.VScrollThumb.addProperties({ vSrc:"images/Scrollbar/vthumb.png" })
Code:
Uncaught JavaScript exception [Uncaught TypeError: Object MyVScrollThumb has no method 'create']
SmartGWT 4.0
any change to make it work?
PLEASE HELP !
Comment