PDA

View Full Version : Custom ScrollBar



mcohnen
14 Sep 2007, 3:24 AM
Hi,

Is there a class, function or whatever in ExtJs for making custom Javascript scrollbars? Lets say a div, with overflow:hidden, specified height, and a custom beatiful scrollbar to move over that div.
I have built a cusom one, but just using buttons to move scrollBar. Would be great to be able to move the scrollBar also by dragging it. Any clues of how i can do that?

Thanks !

mcohnen
5 Nov 2007, 1:30 AM
bump

brian.moeskau
5 Nov 2007, 1:56 AM
There's nothing like that in Ext, and rolling your own would generally be highly discouraged for anything requiring professional quality. There is quite a lot to implementing custom scroll bars in a complete, usable, standard, cross-browser way. There have been other discussions about it on the forum. Someone recently posted a link to this very nice 3rd party lib (http://www.hesido.com/web.php?page=customscrollbar) that ONLY does custom scrollbars and nothing else -- I would recommend taking a look at that. Of course, I'm not sure if it integrates directly into Ext or not -- if you try it, please let us know.

You can always take a look at the Ext DnD classes and try your hand at a custom solution, but you have been suitably warned ;)