Skip to content

Commit

Permalink
added content rendered trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Jul 13, 2015
1 parent 0e72456 commit 09a6a37
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<script type="text/javascript" src="../source/js/DataController.js"></script>
<script type="text/javascript" src="../source/js/MDXParser.js"></script>
<script type="text/javascript" src="../source/js/PivotLocale.js"></script>
<script type="text/javascript" src="../source/js/ExcelExport.js"></script>
<!-- endbuild -->
<style>
a {
Expand Down Expand Up @@ -115,6 +114,7 @@
// if cellDrillThrough callback returns boolean false, DrillThrough won't be performed.
//, cellDrillThrough: function ({Object { event: {event}, filters: {string[]} }}) {}
//, rowSelect: function (rs) { console.log("Rows: ", rs); }
//, contentRendered: function () { console.log("Rendered, wow!"); }
}
, pagination: 30 // Maximum rows number on one page (default: 200, turn off: 0)
//, hideButtons: true // hides "back" and "drillThrough" buttons
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.2.7",
"version": "1.2.8",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ var setup = { // Object that contain settings. Properties in brackets can be mis
, cellDrillThrough: function ({Object { event: {event}, filters: {string[]}, cellData: {object} }}) {}
, responseHandler: function ({Object {url: {string}, status: {number}}}) {}
, rowSelect: function ({Array}) {}
, contentRendered: function () {}
} ]
[ , pagination: 30 ] // Maximum rows number on one page (default: 200, turn off: 0)
[ , hideButtons: true ] // hides "back" and "drillThrough" buttons
Expand Down
4 changes: 4 additions & 0 deletions source/js/PivotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,4 +1236,8 @@ PivotView.prototype.renderRawData = function (data) {
setCaretPosition(this.elements.searchInput, this.savedSearch.value.length);
}

if (typeof this.controller.CONFIG.triggers.contentRendered === "function") {
this.controller.CONFIG.triggers.contentRendered();
}

};

0 comments on commit 09a6a37

Please sign in to comment.