Skip to content

Instantly share code, notes, and snippets.

@mindspank
Created August 4, 2015 22:17
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/72b411682caf8f2425ce to your computer and use it in GitHub Desktop.
Save mindspank/72b411682caf8f2425ce to your computer and use it in GitHub Desktop.
ListObjectDef and HyperCubeDef in a extension initial properties
define(["jquery"], function ($) {
return {
initialProperties: {
version: 1.0,
qHyperCubeDef: {
qDimensions: [],
qMeasures: [],
qInitialDataFetch: [{
qWidth: 2,
qHeight: 50
}]
},
ToddsList: {
"qListObjectDef": {
"qLibraryId": "",
"qDef": {
"qFieldDefs": [
"AsciiNum"
]
},
"qShowAlternatives": true,
"qInitialDataFetch": [
{
"qTop": 0,
"qLeft": 0,
"qHeight": 50,
"qWidth": 1
}
]
}
}
},
//property panel
definition: {
type: "items",
component: "accordion",
items: {
dimensions: {
uses: "dimensions",
min: 1,
max: 1
},
measures: {
uses: "measures",
min: 1,
max: 1
},
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