New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table pagination #20

Closed
zeehio opened this Issue Dec 24, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@zeehio
Copy link
Contributor

zeehio commented Dec 24, 2016

Hi,

I was wondering if it is currently possible to have the HTML table paginated... Showing for instance 10 rows and a previous/next page button.

I cannot find the option and it is a handy feature for long tables...

Thanks and sorry if I have missed it!

@gforge

This comment has been minimized.

Copy link
Owner

gforge commented Dec 25, 2016

Sounds like a neat feature but its rather complicated to implement and requires advanced JavaScript coding. There is the htmlTable::interactiveTable that has some JavaScript associated with it that could be extended with more features. It is probably about 40-80 hour of coding though and I don't have the time resources available for this but anyone that wants is welcome to add this functionality to the interactiveTable

@zeehio

This comment has been minimized.

Copy link
Contributor Author

zeehio commented Jan 2, 2017

I have a solution that uses htmlwidgets and jquery.

Would you mind depending on the htmlwidgets package for pagination?

I will submit a PR once it's finished. In case you don't like it I may use it in condformat anyway 👍

@gforge

This comment has been minimized.

Copy link
Owner

gforge commented Jan 3, 2017

Sounds awesome - go for it :-)

BTW - just had to update package to version 1.8 due to CRAN-errors.

zeehio added a commit to zeehio/htmlTable that referenced this issue Jan 4, 2017

zeehio added a commit to zeehio/htmlTable that referenced this issue Jan 4, 2017

@zeehio

This comment has been minimized.

Copy link
Contributor Author

zeehio commented Jan 4, 2017

Feel free to review and merge whenever it is good for you 👍

@gforge gforge closed this in #21 Jan 4, 2017

gforge added a commit that referenced this issue Jan 4, 2017

Merge pull request #21 from zeehio/add_pagination
Wow, really neat work. Never worked with htmlWidgets but I do code a lot in JavaScript so it's nice to see this close integration. On may want to add the ability to change a single line since the current code won't respect rgroups/tspanners that may be of interest when interpreting the table.

I need to figure out if there is a way for htmlTable to better integrate with the new RStudio notebook and then I'll send this to CRAN.

Add Pagination as an htmlwidget. Closes #20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment