You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,26 @@ Build the project, and then include <code>build/css/lightPivotTable.css</code> a
34
34
Then use global object <i>LightPivotTable</i>:
35
35
```js
36
36
var setup = { // Object that contain settings. Any setting may be missed.
37
-
container:document.getElementById("pivot"), // HTMLElement on DOM which will contain table.
38
-
dataSource: {
39
-
MDX2JSONSource:"http://localhost:57772/SAMPLES", // MDX2JSON source server address
40
-
basicMDX:"SELECT NON EMPTY [Product].[P1].[Product Category].Members ON 0, NON EMPTY [Outlet].[H1].[Region].Members ON 1 FROM [HoleFoods]"// basic MDX which are going to be rendered when widget loads
37
+
container:document.getElementById("pivot") // HTMLElement which will contain table.
38
+
, dataSource: {
39
+
MDX2JSONSource:"http://localhost:57772/SAMPLES", // MDX2JSON server address
40
+
basicMDX:typeof req ==="object"?req.basicMDX: req
41
+
[ , namespace:"SAMPLES" ] // current namespace : default namespace
42
+
[ , username:"USER" ] // user name : default user
43
+
[ , password:"" ] // user password : default password
41
44
}
42
-
, caption:"My table"// if set, table basic caption will be replaced by this text
43
-
, showSummary:true// show summary by columns
44
-
, formatNumbers:"#,###.##"// number formatting mask // @deprecated
0 commit comments