- This component creates a custom KPI (key performance indicator) that you can then style to fit your mashup.
prop |
type |
description |
cols |
Array |
see here |
var options = {
config: { /* host, port, appid, etc. */ },
connections: { /* vizApi, engineAPI */}
}
var qdtComponents = new QdtComponents(options.config, options.connections);
var element = document.getElementById('qdt1');
qdtComponents.render(
"QdtKpi",
{
cols: [`=Count( {$<Priority={'High'}, Status -={'Closed'} >} Distinct %CaseId )`],
},
element
);
<QdtComponent
type="QdtKpi"
props={{
cols: [`=Count( {$<Priority={'High'}, Status -={'Closed'} >} Distinct %CaseId )`],
}}
/>
// qdt-kpi.component.ts
import { Component, OnInit, ElementRef } from '@angular/core';
@Component({
selector: 'qdt-kpi',
templateUrl: './qdt-kpi.component.html',
})
export class QdtKpiComponent implements OnInit {
constructor(private el: ElementRef) { }
chart_options = {
type: 'QdtKpi',
props: {
cols: [`=Count( {$<Priority={'High'}, Status -={'Closed'} >} Distinct %CaseId )`],
},
};
ngOnInit() {
}
}
<!-- html -->
<qdt-kpi [Component]="chart_options.type" [props]="chart_options.props"></qdt-kpi>
← Back to All Components