Compare commits

..

4 Commits

Author SHA1 Message Date
Albert Backenhof
bec68e7cd4 Merge pull request #39 from qlik-oss/DEB-159/Props
Changed order of properties and added About
2019-04-10 12:05:15 +02:00
Albert Backenhof
02bba4ad5a Merge pull request #38 from qlik-oss/DEB-157/NineMeasures
1 Dim and 9 Measures OR 2 Dim and 8 Measures
2019-04-10 11:30:44 +02:00
Albert Backenhof
cac3fabb2f Changed order of properties and added About
Issue: DEB-159
2019-04-10 08:13:24 +02:00
Albert Backenhof
c57b0edea8 1 Dim and 9 Measures OR 2 Dim and 8 Measures
-Dynamic max values for Dimensions and Measures.

Issue: DEB-157
2019-04-10 07:50:07 +02:00
3 changed files with 34 additions and 10 deletions

View File

@@ -18,6 +18,9 @@ const definition = {
},
uses: 'data'
},
sorting: {
uses: 'sorting'
},
settings: {
items: {
ConceptSemaphores: conceptSemaphores,
@@ -28,8 +31,25 @@ const definition = {
},
uses: 'settings'
},
sorting: {
uses: 'sorting'
about: {
component: 'items',
label: 'About',
items: {
header: {
label: 'P&L pivot',
style: 'header',
component: 'text'
},
paragraph1: {
label: `P&L pivot is a Qlik Sense extension which allows you to display Profit & Loss
reporting with color and font customizations.`,
component: 'text'
},
paragraph2: {
label: 'P&L pivot is based upon an extension created by Ivan Felipe Asensio.',
component: 'text'
}
}
}
},
type: 'items'

View File

@@ -41,7 +41,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 10,
index: 8,
color: '#f93f17'
}
},
@@ -52,7 +52,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 1,
index: 11,
color: '#ffffff'
}
},
@@ -69,7 +69,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 8,
index: 9,
color: '#ffcf02'
}
},
@@ -80,7 +80,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 15,
index: 12,
color: '#000000'
}
},
@@ -91,7 +91,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 3,
index: 10,
color: '#276e27'
}
},
@@ -102,7 +102,7 @@ const metricSemaphores = {
component: 'color-picker',
dualOutput: true,
defaultValue: {
index: 1,
index: 11,
color: '#ffffff'
}
}

View File

@@ -20,12 +20,16 @@ export default {
},
data: {
dimensions: {
max: 3,
max: function (nMeasures) {
return nMeasures < 9 ? 2 : 1;
},
min: 1,
uses: 'dimensions'
},
measures: {
max: 8,
max: function (nDims) {
return nDims < 2 ? 9 : 8;
},
min: 1,
uses: 'measures'
}