ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Could we change the Scrollbar style of UI Grid

Open Bitchy opened this issue 11 years ago • 13 comments

Could we change the scrollbar style of the UI Grid as below picture show? if Yes, how do change it, does anyone konw how to modify the css file for it? qq 20150721164255

I try to use the customizer(http://ui-grid.info/customizer/) to modify the css for the scorllbar like @scrollbarBackground but it seems it doesn't influence the scrollbar style, does anyone konw this?

Bitchy avatar Jul 21 '15 08:07 Bitchy

UI Grid uses native scrolling so the scrollbars are dependent on the browser and OS.

On Tue, Jul 21, 2015, 3:44 AM Ricky Cai [email protected] wrote:

Could we change the the scrollbar of the UI Grid as below picture show? if Yes, how do change it, does anyone konw how to modify the css file for it? [image: qq 20150721164255] https://cloud.githubusercontent.com/assets/4770761/8796486/b3618c30-2fc7-11e5-95b2-3a15ca95cd64.png

— Reply to this email directly or view it on GitHub https://github.com/angular-ui/ui-grid/issues/4016.

c0bra avatar Jul 21 '15 11:07 c0bra

Yes, you are right. We want to use a third party jQuery library to custom the scrollbar, reference here:http://manos.malihu.gr/jquery-custom-content-scroller/, but I am not sure it support the UI Grid, do you know about it?

Bitchy avatar Jul 23 '15 05:07 Bitchy

I haven't heard of anyone using it with UI Grid so I can't speculate unfortunately.

c0bra avatar Jul 23 '15 11:07 c0bra

If you give it a try and it works/doesn't work let me know.

c0bra avatar Jul 23 '15 16:07 c0bra

Also have the same issue. I want to use custom scrollBar with ui-grid. Please somebody give me information about this. Thank you.

viktordavidovich avatar Aug 12 '15 11:08 viktordavidovich

Hello,

Same issue here.

When I try to use external scrollbars they don't seem to work with the ui-grid.

I guess they are not compatible...

Gonkaro avatar Nov 09 '15 11:11 Gonkaro

I also tried it, not working for me also. here is the fiddle.

https://jsfiddle.net/amiku1702/hmay2ya8/7/

if it is working for someone, please share.

amit-kumar-cse avatar Dec 02 '16 09:12 amit-kumar-cse

we can use third party angular scrollbar.

deepakambastha28 avatar Dec 02 '16 10:12 deepakambastha28

Hi all,

here is example how to modify html & less to get styled scrollbars: #5951

mobichel avatar Jan 17 '17 12:01 mobichel

.ui-grid-viewport::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); border-radius: 10px; background-color: #F5F5F5; }

.ui-grid-viewport::-webkit-scrollbar { width: 12px; background-color: #F5F5F5; }

.ui-grid-viewport::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); background-color: #555; }

use this

vinay5c8 avatar Jan 25 '17 06:01 vinay5c8

@vinay5c8 thanks,

it will work only for webkit based browsers.

You can see how to get consistent scrollbars across browsers in ui-grid here.

mobichel avatar Jan 25 '17 06:01 mobichel

Here is example how to stlye scrollbar without modification in ui-grid: example

mobichel avatar May 12 '17 12:05 mobichel

We should document the example provided

mportuga avatar Mar 21 '18 18:03 mportuga