Skip to content

Instantly share code, notes, and snippets.

@mindspank
Created September 27, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mindspank/e0bae613f5a9c1fe90ebac69e139170d to your computer and use it in GitHub Desktop.
Save mindspank/e0bae613f5a9c1fe90ebac69e139170d to your computer and use it in GitHub Desktop.
define([], function() {
return {
initialProperties: {
version: 1.0,
qHyperCubeDef: {
qDimensions: [],
qMode: 'P',
qMeasures: [],
qInitialDataFetch: [{
qWidth: 3,
qHeight: 50
}]
}
},
definition: {
type: "items",
component: "accordion",
items: {
dimensions: {
uses: "dimensions",
items: {
MyAttrProp: {
type: "string",
label: "DimExpr",
ref: "qAttributeExpressions.0.qExpression",
expression: '',
defaultValue: 'Sum(1)'
}
}
},
measures: {
uses: "measures"
},
sorting: {
uses: "sorting"
},
addons: {
uses: "addons"
},
settings: {
uses: "settings"
}
}
},
controller: function($scope, $element) {
console.log($scope)
},
paint: function ($el, layout) {
console.log(layout, this)
this.backendApi.getProperties().then(props => console.log)
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment