Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/travishorn/jquery-tabletotal
Automatically add total row and/or total column to table.
https://github.com/travishorn/jquery-tabletotal
Last synced: 28 days ago
JSON representation
Automatically add total row and/or total column to table.
- Host: GitHub
- URL: https://github.com/travishorn/jquery-tabletotal
- Owner: travishorn
- License: mit
- Created: 2017-07-31T15:43:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T16:44:53.000Z (over 7 years ago)
- Last Synced: 2024-11-06T04:40:49.577Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tableTotal jquery Plugin
Automatically add total row and/or total column to table.
## Installation
1. Include [jQuery](https://jquery.com/download/) on the page.
2. Include `jquery.tableTotal.js` on the page.## Usage
### HTML
Q1
Q2
North
54
14
South
24
39
### JS
$('#totalMe').tableTotal();
## Options
### totalCol
Default: `true`
If `true`, adds a column to your table with row totals.
### totalRow
Default: `true`
If `true`, adds a row to your table with column totals.
### bold
Default: `true`
If `true`, makes all total numbers bold.
## Live Example
You can find a live example of this plugin in [this pen](https://codepen.io/travishorn/pen/Mvyyzz).