DEV Community

programador51
programador51

Posted on

Try js-smart-table!!

cover

Hi everyone, today i present you the first library i've created for javascript (front-end/client-side).

Ill give you this link in order to try the demo by yourself.

Basically, tabulates date from an API using javascript and prints it on the browser. Something like this.
example_library

What's the interesting of this?

  • Allows you click on the column and sort the data (sorted by the sql motor that use the API)
  • Gives you a pagination of the data
  • Allows you click on the rows and "save on memory" the information (an object with the information of that row). This allows you make another operations (callback) using as reference the data clicked. For instance. You clicked a row and you want to fill a form with that? You can do it! Request to another API? Yeah too. Actually you can do anything.
  • Vanilla JS. You can use it anywhere (i'm using it right now on React and Vanilla projects) or any library/framework of JS.

I hope this can help you when trying to implement this kind of features on your projects. All it's documented,video and with example codes in order to make it understandable for the community.

Cheers.

NPM LIBRARY HERE

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more