Skip to content

Commit

Permalink
V1 11.0 (#54)
Browse files Browse the repository at this point in the history
* [#38] Initial Expand/Collapse Behavior

* [#38, #12] Initial Expand/Collapse Behavior, Row subtotal at bottom

* rowSubtotalDisplay.displayOnTop: true/false introduced

* subtotal at bottom - row collapse implemented

* bug fixes when using combinations of options

* complete rewrite

* code cleanup

* code cleanup

* code cleanup

* code refactoring

* code refactoring

* Code refactoring

* code re-factoring

* code cleanup

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring

* code refactoring
  • Loading branch information
nagarajanchinnasamy authored Dec 3, 2017
1 parent cfc44d3 commit 14a09b8
Show file tree
Hide file tree
Showing 47 changed files with 1,996 additions and 1,900 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Issues

[Issues](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/issues/new) are the preferred way to communicate with the author and users of Subtotal.js, rather than private email.
[Issues](https://github.com/nagarajanchinnasamy/subtotal/issues/new) are the preferred way to communicate with the author and users of Subtotal.js, rather than private email.

* If you have multiple questions, please create multiple issues
* Please do not add a comment to an existing issue to ask an unrelated question: create a new issue instead
Expand All @@ -14,6 +14,6 @@
* It's probably best to log an issue (see above) to report a bug or ask how something was meant to be done before jumping in and modifying the code, if only to confirm that there isn't another way to do what you're aiming for, and to increase the odds that your pull request will be merged :)
* Multiple small pull requests which aim to solve clearly-stated problems are preferable to large pull requests which make many unrelated changes
* The code for this project is written in CoffeeScript and thereafter compiled to Javascript, so it would be best to submit modifications to the CoffeeScript source files rather than to the automatically-generated Javascript source files (please reach out if you've made some neat modifications to the Javascript and want help 'porting' back up to the CoffeeScript version).
* Releases for this project are built using the Gulp build system, and the resulting build products (located under `dist`) are tested with the Jasmine test suite under `tests`. See the building/test section of the main [ReadMe](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/blob/master/README.md) for details.
* Releases for this project are built using the Gulp build system, and the resulting build products (located under `dist`) are tested with the Jasmine test suite under `tests`. See the building/test section of the main [ReadMe](https://github.com/nagarajanchinnasamy/subtotal/blob/master/README.md) for details.
* The aim of this project is to have a plugin for [PivotTable.js](https://github.com/nicolaskruchten/pivottable) that adheres to interface specifications as documented in that library. So, please ensure your changes do not break this contract.
* This is a cross-browser, client-side library with very little (if any) browser-specific shim code, so please try to submit modifications that work with as many browsers as possible and which don't require any server-side components
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
[![npm](http://nagarajanchinnasamy.com/subtotal/images/subtotal_npm.svg)](https://www.npmjs.com/package/subtotal) [![tests](http://nagarajanchinnasamy.com/subtotal/images/subtotal_tests.svg)](http://nagarajanchinnasamy.com/subtotal/tests/) [![license](http://nagarajanchinnasamy.com/subtotal/images/subtotal_license.svg)](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/blob/master/LICENSE)
[![npm](http://nagarajanchinnasamy.com/subtotal/images/subtotal_npm.svg)](https://www.npmjs.com/package/subtotal) [![tests](http://nagarajanchinnasamy.com/subtotal/images/subtotal_tests.svg)](http://nagarajanchinnasamy.com/subtotal/tests/) [![license](http://nagarajanchinnasamy.com/subtotal/images/subtotal_license.svg)](https://github.com/nagarajanchinnasamy/subtotal/blob/master/LICENSE)


# Subtotal.js

[Subtotal.js](http://nagarajanchinnasamy.com/subtotal) is an open-source JavaScript plugin for **PivotTable.js** . Subtotal.js renders rows and columns of a pivot table with subtotals and lets the user to expand or collapse rows and columns. Its originally written by [Nagarajan Chinnasamy](https://github.com/nagarajanchinnasamy/) at [Mindtree](http://mindtree.com/).
[Subtotal.js](http://nagarajanchinnasamy.com/subtotal) is a JavaScript plugin for [PivotTable.js](https://pivottable.js.org/examples/). It renders rows and columns of a pivot table with subtotals and lets the user expand or collapse rows and columns.


It is available under an MIT license from [NPM](https://www.npmjs.com/package/subtotal) and [Bower](http://bower.io/) under the name `subtotal`. On [packagist.org](https://packagist.org/), it is `nagarajanchinnasamy/subtotal`.
Subtotal.js is available under an MIT license from [NPM](https://www.npmjs.com/package/subtotal) and [Bower](http://bower.io/) under the name `subtotal`. On [packagist.org](https://packagist.org/packages/nagarajanchinnasamy/subtotal), it is `nagarajanchinnasamy/subtotal`.


[PivotTable.js](http://nicolas.kruchten.com/pivottable) is a Javascript Pivot Table library with drag'n'drop functionality built on top of jQuery/jQueryUI and originally written in CoffeeScript by [Nicolas Kruchten](http://nicolas.kruchten.com) at [Datacratic](http://datacratic.com).


## What does it do?

Subtotal.js renders rows and columns of a pivot table with subtotals and lets the user to expand or collapse rows and columns.

![image](http://nagarajanchinnasamy.com/subtotal/images/subtotal-renderer-pivotui.png)

## Where can I see the demo?
Expand All @@ -24,11 +17,11 @@ You can see the live demo at [examples page](http://nagarajanchinnasamy.com/subt

## How can I get started?

To know how to load and use this library, please refer to [Getting Started Wiki Page](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/wiki/Getting-Started)
To know how to load and use this library, please refer to [Getting Started Wiki Page](https://github.com/nagarajanchinnasamy/subtotal/wiki/Getting-Started)

## API Documentation?

Please refer to [Wiki Pages](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/wiki)
Please refer to [Wiki Pages](https://github.com/nagarajanchinnasamy/subtotal/wiki)

## How can I build the code and run the tests?

Expand All @@ -42,11 +35,11 @@ The easiest way to modify the code and work with the examples is to leave a `nod

## How can I contribute?

Pull requests are welcome! Here are some [Contribution Guidelines](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/blob/master/CONTRIBUTING.md).
Pull requests are welcome! Here are some [Contribution Guidelines](https://github.com/nagarajanchinnasamy/subtotal/blob/master/CONTRIBUTING.md).

## I have a question, how can I get in touch?

Please first check the [issues](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/issues) that are already raised and if you can't find what you're looking for there, then please [create a GitHub Issue](https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer/issues/new). When creating an issue, please try to provide a replicable test case so that others can more easily help you.
Please first check the [issues](https://github.com/nagarajanchinnasamy/subtotal/issues) that are already raised and if you can't find what you're looking for there, then please [create a GitHub Issue](https://github.com/nagarajanchinnasamy/subtotal/issues/new). When creating an issue, please try to provide a replicable test case so that others can more easily help you.

## Copyright & Licence (MIT License)

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"collapse",
"summary"
],
"homepage": "https://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer",
"homepage": "https://github.com/nagarajanchinnasamy/subtotal",
"repository": {
"type": "git",
"url": "git://github.com/nagarajanchinnasamy/pivottable-subtotal-renderer.git"
"url": "git://github.com/nagarajanchinnasamy/subtotal.git"
},
"dependencies": {
"pivottable": ">=2.7.0"
Expand Down
89 changes: 76 additions & 13 deletions dist/pivot_spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pivot_spec.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 14a09b8

Please sign in to comment.