Skip to content

Commit 0301f7b

Browse files
missed documentation fix
1 parent c6c6bb8 commit 0301f7b

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

example/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@
8787
setup = {
8888
container: document.getElementById("pivot"), // HTMLElement which will contain table.
8989
dataSource: {
90-
MDX2JSONSource: "http://192.168.1.101:57772/SAMPLES", // MDX2JSON server address
90+
MDX2JSONSource: "http://" + location.hostname + ":57773/SAMPLES",
91+
// MDX2JSON server address
9192
basicMDX: typeof req === "object" ? req.basicMDX : req
93+
//, pivot: "name of data source.pivot" // name of data source to apply pivot rules
9294
//[ , namespace: "SAMPLES" ] // current namespace : default namespace
9395
//[ , username: "USER" ] // user name : default user
9496
//[ , password: "" ] // user password : default password

readme.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var setup = { // Object that contain settings. Any setting may be missed.
4040
, dataSource: {
4141
MDX2JSONSource: "http://localhost:57772/SAMPLES", // MDX2JSON server address
4242
basicMDX: typeof req === "object" ? req.basicMDX : req
43+
[ , pivot: "name of data source.pivot" ] // name of data source to apply pivot rules
4344
[ , namespace: "SAMPLES" ] // current namespace : default namespace
4445
[ , username: "USER" ] // user name : default user
4546
[ , password: "" ] // user password : default password
@@ -51,14 +52,14 @@ var setup = { // Object that contain settings. Any setting may be missed.
5152
// if cellDrillThrough callback returns boolean false, DrillThrough won't be performed.
5253
, cellDrillThrough: function ({Object { event: {event}, filters: {string[]}, cellData: {object} }}) {}
5354
} ]
54-
[ , hideButtons: true // hides "back" and "drillThrough" buttons ]
55-
[ , triggerEvent: "touchstart" // all "click" events will be replaced by this event ]
56-
[ , caption: "My table" // if set, table basic caption will be replaced by this text ]
57-
[ , showSummary: true // show summary by columns ]
58-
[ , conditionalFormattingOn: true // pass false to turn off conditional formatting ]
59-
[ , loadingMessageHTML: "LOADING DATA..." // HTML displaying during data load ]
60-
[ , enableHeadersScrolling: false // enable scrolling both for table and headers. Useful for mobile devices. ]
61-
[ , drillDownTarget: "<dashboard name>" // deepSee only - dashboard to open ]
55+
[ , hideButtons: true ] // hides "back" and "drillThrough" buttons
56+
[ , triggerEvent: "touchstart" ] // all "click" events will be replaced by this event
57+
[ , caption: "My table" ] // if set, table basic caption will be replaced by this text
58+
[ , showSummary: true ] // show summary by columns
59+
[ , conditionalFormattingOn: true ] // pass false to turn off conditional formatting
60+
[ , loadingMessageHTML: "LOADING DATA..." ] // HTML displaying during data load
61+
[ , enableHeadersScrolling: false ] // enable scrolling both for table and headers. Useful for mobile devices.
62+
[ , drillDownTarget: "<dashboard name>" ] // deepSee only - dashboard to open
6263
},
6364
lp = new LightPivotTable(setup);
6465

0 commit comments

Comments
 (0)