Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Tips #3

Open
MikeRow opened this issue Apr 17, 2020 · 1 comment
Open

Tips #3

MikeRow opened this issue Apr 17, 2020 · 1 comment

Comments

@MikeRow
Copy link

MikeRow commented Apr 17, 2020

I would find usefull:

  • display() returns the number of rows
  • if the table is larger than screen it autoadapts

By the way, good job, thank you.

@conrad10781
Copy link
Contributor

display() returns the number of rows

^-- Unless I'm misunderstanding, you can count the number of rows in the array you pass to injectData() right? You could modify this library to have a new function to get the count, but it seems like extra work.

if the table is larger than screen it autoadapts
^-- I don't have a suggestion for this, as there are many variables that would go into even possibly attempting this, but I've implemented the centering of the table if the data is smaller than the width if that is something you're interested in. You can either PR from my fork to yours, use my fork, or wait until a pending PR I have on this library for something else is merged and then I can submit that PR on this library as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants