Skip to content

Instantly share code, notes, and snippets.

@erikwett
Last active June 6, 2017 07:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save erikwett/8cff48c615bbd0fc7dd2af187def829a to your computer and use it in GitHub Desktop.
dimension : {
type : "items",
label : "Dimensions",
ref : "qListObjectDef",
min : 1,
max : 1,
items : {
label : {
type : "string",
ref : "qListObjectDef.qDef.qFieldLabels.0",
label : "Label",
show : true
},
libraryId : {
type : "string",
component : "library-item",
libraryItemType : "dimension",
ref : "qListObjectDef.qLibraryId",
label : "Dimension",
show : function(data) {
return data.qListObjectDef && data.qListObjectDef.qLibraryId;
}
},
field : {
type : "string",
expression : "always",
expressionType : "dimension",
ref : "qListObjectDef.qDef.qFieldDefs.0",
label : "Field",
show : function(data) {
return data.qListObjectDef && !data.qListObjectDef.qLibraryId;
}
},
frequency : {
type : "string",
component : "dropdown",
label : "Frequency mode",
ref : "qListObjectDef.qFrequencyMode",
options : [{
value : "N",
label : "No frequency"
}, {
value : "V",
label : "Absolute value"
}, {
value : "P",
label : "Percent"
}, {
value : "R",
label : "Relative"
}],
defaultValue : "V"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment