Skip to content

Commit

Permalink
added printing support
Browse files Browse the repository at this point in the history
  • Loading branch information
QlikPreSalesDACH committed Nov 21, 2019
1 parent c1522ed commit e3dfba9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
//console.log($element);

// getting chart-offset
let ChartOffset = ((($element[0].clientHeight/100)*scope.layout.prop.minichart.area)-$element[0].clientHeight)*-1;
let ChartOffset = ((($element[0].clientHeight / 100) * scope.layout.prop.minichart.area) - $element[0].clientHeight) * -1;

if (scope.layout.qHyperCube.qDimensionInfo.length > 0 || scope.layout.qHyperCube.qMeasureInfo.length > 0) {

Expand All @@ -40,7 +40,19 @@ export default {
//refreshing chart
if (scope.chart) {
scope.chart.update();
qlik.Promise.resolve();
}
},
support: { snapshot: false, export: false, exportData: true }
support: {
snapshot: true,
export: true,
exportData: true,
viewData: function (data) {
if (data.qHyperCube.qMeasureInfo[0] && data.qHyperCube.qDimensionInfo[0]) {
return true;
} else {
return false;
}
}
}
};
1 change: 1 addition & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

.adv-kpi-measure {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
z-index: 10;
padding: 0 5px;
}
Expand Down

0 comments on commit e3dfba9

Please sign in to comment.