0.1.21 • Published 1 year ago
table-actions v0.1.21
Table actions
Simple & customizable table with search, sort, pagination and checkbox functions in vanilla JS
Development
Docker container running lite-server and watching code changes
make watch
Results can be tested in demos:
Generate bundle
Local bundle pack with project name and actual project version in root folder
make bundle
Run tests
Execute all tests suites of root /tests
folder
make test
More
To see all make commands
make help
Installation
yarn add table-actions
Or directly in the HTML file
<!-- Add to head HTML tag -->
<link rel="stylesheet" href="./css/table-actions.min.css" />
<!-- Add to the bottom of body HTML tag -->
<script src="./dist/table-actions.js"></script>
<!-- or directly from unpkg -->
<link
rel="stylesheet"
href="https://unpkg.com/table-actions@latest/dist/table-actions.min.css"
/>
<script src="https://unpkg.com/table-actions@latest/dist/table-actions.min.js"></script>
Run
// Utils library functions: toNormalForm and newElement can be imported here
import { TableActions } from "table-actions";
const table = new TableActions("elementOrQuerySelector", {
/* options */
}); // only this line when included with script HTML tag
Features
- Checkable columns with callback function to interact with selected elements
- Paginate
- Sortable columns
- Sort by date
- Theme light and dark
- Mobile theme options full responsive
- Search field
- Populate table with json data (example: demo/json-data-table.html)
Roadmap
- API request data to populate Table
References
Theme and mobile reference
0.1.21
1 year ago
0.1.20
2 years ago
0.1.19
2 years ago
0.1.17
2 years ago
0.1.18
2 years ago
0.1.10
3 years ago
0.1.11
3 years ago
0.1.12
3 years ago
0.1.13
3 years ago
0.1.14
3 years ago
0.1.15
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.16
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.0
3 years ago
0.1.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago