Binwin Viju
[NPM]-Sorting-Table-by--
👋 Hi, I’m @Binwin6724 -
👀 I’m interested in Developing Application -
🌱 I’m currently learning React JS -
💞️ I’m looking to collaborate on API Handling -
📫 Reach me by going to this website Binwin Viju.
Things to look before
In order to get this work there are some requirements that needed to be met.
Requirements
- Table class name must be : table-sortable
<table class = "table-sortable">
- Table heading must be inside thead :
<thead><tr><th>example header</th></tr></thead>
How things works :-
-
For a Vide tutorial visit npm package walkthrough.
-
We need to run this command to get the package to your project.
npm i sort-table-with-binwin
-
After running that we need to source package named sort-table.js to your project like
<script src="./node_modules/sort-table-with-binwin/sort-table.js"></script>
this must be added above</body>
Happy Hacking!!