Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
Final Custom Item API Changes: array in ICustomDataRow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
poltavets.pavel committed Apr 28, 2017
1 parent 2cc757a commit 352f342
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/online-map-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ var CustomItems;
var markers = [], routes = [], mode = this.getPropertyValue('DisplayMode'), showMarkers = mode === 'Markers' || mode === 'MarkersAndRoutes' || this.canMasterFilter(), showRoutes = mode === 'Routes' || mode === 'MarkersAndRoutes';
if (this.getBindingValue('Latitude').length > 0 && this.getBindingValue('Longitude').length > 0) {
this.iterateData(function (row) {
var latitude = row.getValue('Latitude');
var longitude = row.getValue('Longitude');
var latitude = row.getValue('Latitude')[0];
var longitude = row.getValue('Longitude')[0];
if (latitude && longitude) {
if (showMarkers) {
markers.push({
Expand Down
2 changes: 1 addition & 1 deletion dist/online-map-extension.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/online-map-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ module CustomItems {
showRoutes = mode === 'Routes' || mode === 'MarkersAndRoutes';
if(this.getBindingValue('Latitude').length > 0 && this.getBindingValue('Longitude').length > 0) {
this.iterateData(row => {
var latitude = row.getValue('Latitude');
var longitude = row.getValue('Longitude');
var latitude = row.getValue('Latitude')[0];
var longitude = row.getValue('Longitude')[0];
if (latitude && longitude) {
if (showMarkers) {
markers.push({
Expand Down
7 changes: 3 additions & 4 deletions typings/globals/dashboards/dx-dashboard-designer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ declare module DevExpress.Dashboard {
}

interface ICustomDataRow {
getColor: (property: string, index?: number) => any;
getValue: (property: string, index?: number) => any;
getUniqueValue: (property: string, index?: number) => any;
getDisplayText: (property: string, index?: number) => any;
getColor: (property?: string) => Array<string>;
getDisplayText: (property: string) => Array<string>;
getValue: (property: string) => Array<any>;
}
}

Expand Down

0 comments on commit 352f342

Please sign in to comment.