Skip to content

Commit

Permalink
Property strings using standard formatting
Browse files Browse the repository at this point in the history
Issue: DEB-254
  • Loading branch information
Albert Backenhof authored and Albert Backenhof committed Jun 7, 2019
1 parent 530036b commit 9d13dbc
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/definition.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ define([], function () {
},
subtotalColor: {
ref: "color.subtotal.paletteColor",
label: "Start Value Color",
label: "Start value color",
type: "object",
component: "color-picker",
dualOutput: true,
Expand All @@ -59,7 +59,7 @@ define([], function () {
},
subtotalEndColor: {
ref: "color.subtotalEnd.paletteColor",
label: "End Value Color",
label: "End value color",
type: "object",
component: "color-picker",
dualOutput: true,
Expand Down Expand Up @@ -200,39 +200,39 @@ define([], function () {
startName: {
ref: "startName",
type: "string",
label: "Start Value Label",
label: "Start value label",
expression: "optional",
defaultValue: "Start Value",
defaultValue: "Start value",
show: function e(t) {
return !t.labelsshow;
}
},
endName: {
ref: "endName",
type: "string",
label: "End Value Label",
label: "End value label",
expression: "optional",
defaultValue: "End Value",
defaultValue: "End value",
show: function e(t) {
return !t.labelsshow;
}
},
posName: {
ref: "posName",
type: "string",
label: "Positive Label",
label: "Positive label",
expression: "optional",
defaultValue: "Positive Variance",
defaultValue: "Positive variance",
show: function e(t) {
return !t.labelsshow;
}
},
negName: {
ref: "negName",
type: "string",
label: "Negative Label",
label: "Negative label",
expression: "optional",
defaultValue: "Negative Variance",
defaultValue: "Negative variance",
show: function e(t) {
return !t.labelsshow;
}
Expand All @@ -249,7 +249,7 @@ define([], function () {
title: {
ref: "measureAxis.title",
type: "string",
label: "Axis Title",
label: "Axis title",
defaultValue: "",
expression: "optional"
}
Expand Down Expand Up @@ -310,23 +310,23 @@ define([], function () {
max: 1,
disabledRef: "",
description: () => {
return "Bridge Dimension";
return "Bridge dimension";
}
},
measures: {
min: 2,
max: 2,
disabledRef: "",
description: (a, b) => {
return ["Start Value", "End Value"][b];
return ["Start value", "End value"][b];
},
items: {
variance: {
show: (a, b) => {
return b.properties.qHyperCubeDef.qMeasures[0] == a;
},
type: "string",
label: "Variance Formula",
label: "Variance formula",
component: "expression",
ref: "qAttributeExpressions.0.qExpression",
defaultValue: () => {
Expand Down

0 comments on commit 9d13dbc

Please sign in to comment.