Skip to content

Instantly share code, notes, and snippets.

@mindspank
Last active January 25, 2016 21:13
Show Gist options
  • Save mindspank/14128228901fa6aa6a06 to your computer and use it in GitHub Desktop.
Save mindspank/14128228901fa6aa6a06 to your computer and use it in GitHub Desktop.
define( ["jquery"], function ( $ ) {
'use strict';
return {
initialProperties: {
qHyperCubeDef: {
qDimensions: [{
qDef: {
qFieldDefs: ['Dim1'],
qFieldLabels: ['']
}
}],
qMeasures: [{
qDef: {
qLabel: "",
qDescription: "",
qGrouping: "N",
qDef: "=Sum(Expression1)"
}
}],
qInitialDataFetch: [{
qWidth: 2,
qHeight: 50
}]
}
},
//property panel
definition: {
type: "items",
component: "accordion",
items: {
dimensions: {
uses: "dimensions"
},
measures: {
uses: "measures"
},
sorting: {
uses: "sorting"
},
settings: {
uses: "settings"
}
}
},
snapshot: {
canTakeSnapshot: true
},
paint: function ( $element, layout ) {
console.log(layout)
}
};
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment