Horizontal scroll bar at bottom of DataTable? (under jekyll / gh-pages)
Horizontal scroll bar at bottom of DataTable? (under jekyll / gh-pages)
Link to test case:
https://stanfordnlp.github.io/stanza/performance.html
https://stanfordnlp.github.io/stanza/ner_models.html
Description of problem:
Not sure if the jekyll / gh-pages setup is relevant this time. It may not be.
We have DataTables on our github doc which look quite nice now, thanks to some very helpful answers in previous posts:
https://datatables.net/forums/discussion/73237/datatable-on-just-the-docs-github-page
https://datatables.net/forums/discussion/73297/column-widths-for-datatables-on-just-the-docs-github-page
The integration with jekyll & gh-pages is implemented here:
One very minor issue is that the "performance" page is so long that on a standard browser, it takes up more than one page. Hence the sticky headers I asked about earlier. Is there a way to make the scroll bar at the bottom sticky as well? Of course there are other options such as swiping on a trackpad, or us splitting the table into multiple pages, etc, but I think the scroll bar at the bottom would be convenient.
Replies
No I'm afraid that isn't an option at this time. I can see how that would be an attractive option, but I think the implementation of such a feature might actually be surprisingly difficult. We wouldn't be able to use the actual table container, since to show that we'd need to change the height of the container, which alters the layout of the page. A floating element which could be controlled and its scroll events tied to the table container would be the only way I can think of doing exactly that.
That said, perhaps enabling the
scrollY
option might be an option for you? You could set it to 1vh.Allan
Thanks for following up, anyway!