Skip to content

functions to convert an array into table data, then to render the equivalent html table in page

License

Notifications You must be signed in to change notification settings

AlanDSaster/js-vanilla--render-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-vanilla--render-table

An object class to convert an array into table data, then to render the equivalent html table in page

When serving data from my API to my client app, I needed a way to dynamically render tables of data so I can propogate out the framework for multiple purposes. I've developed this class object to serve an array to the client to dynamically render the data without the use of templating engines like handlebars.

TableController.recordsToElementsData will convert an array of data into a table object.

TableController.renderTable will render the data contained within the table object as an html element and append it to the given html node elements by id, name, and className.

About

functions to convert an array into table data, then to render the equivalent html table in page

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published