noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
429 stars 63 forks source link

question(usage): replace native scrollbar for tables #62

Open Kristinita opened 6 years ago

Kristinita commented 6 years ago

1. Summary

I can't replace native table horizontal scrollbar, use gemini-scrollbar.

2. Example

I add table to example from my previous issues:

I want to replace native horizontal scrollbar for tables.

3. Not helped

3.1. Creating table element

I add to source these lines:

internals.tablescrollbar = new GeminiScrollbar({
    element: document.querySelector(".justtable"),
    autoshow: !0,
    forceGemini: !0
}).create(),

GeminiTableResult

Problems:

  1. GeminiScrollbar on top of the native, but not replace it
  2. Scrollbar in bottom of page not removed

4. Working examples

I can't find real examples for tables in:

  1. Examples of official repository
  2. GitHub

Thanks.