Created
September 27, 2016 11:48
-
-
Save mindspank/e0bae613f5a9c1fe90ebac69e139170d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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