diff --git a/devextreme/dx.devextreme-tests.ts b/devextreme/dx.devextreme-tests.ts index 2aad878f1..78b09d15a 100644 --- a/devextreme/dx.devextreme-tests.ts +++ b/devextreme/dx.devextreme-tests.ts @@ -2,12 +2,12 @@ module Tests.ui { var dataGridOptions: DevExpress.ui.dxDataGridOptions = { - activeStateEnabled: true, - allowColumnReordering: true, - allowColumnResizing: true, - onCellClick: function () { }, - cellHintEnabled: true, - columnAutoWidth: true, + activeStateEnabled: true, + allowColumnReordering: true, + allowColumnResizing: true, + onCellClick: function() { }, + cellHintEnabled: true, + columnAutoWidth: true, columnChooser: { emptyPanelText: "Nothing is here", enabled: true, @@ -53,7 +53,7 @@ module Tests.ui { name: "test-column-name", showEditorAlways: true, showInColumnChooser: true, - showWhenGrouped:true, + showWhenGrouped: true, sortIndex: 1, sortOrder: "desc", trueText: "TRUE", @@ -62,7 +62,7 @@ module Tests.ui { width: "100%" } ], - customizeColumns: function (columns) { + customizeColumns: function(columns) { var i: number; for (i = 0; i < columns.length; i++) { if (columns[i].dataField.indexOf('Date') > 0) { @@ -79,16 +79,16 @@ module Tests.ui { valueExpr: 'CustomerID', displayExpr: 'ContactName' } - } + } if (columns[i].dataField === 'EmployeeID') { columns[i].lookup = { dataSource: { store: [], sort: 'LastName' }, valueExpr: 'EmployeeID', - displayExpr: function (data: any) { + displayExpr: function(data: any) { return data.LastName + ' ' + data.FirstName; } } - } + } if (columns[i].dataField === 'ShipVia') { columns[i].lookup = { dataSource: [ @@ -99,13 +99,13 @@ module Tests.ui { valueExpr: 'ShipperID', displayExpr: 'CompanyName' } - } + } if (columns[i].dataField === 'ShipCity') { - columns[i].editCellTemplate = function (container: JQuery, options: { value: string; setValue: Function }) { + columns[i].editCellTemplate = function(container: JQuery, options: { value: string; setValue: Function }) { $('
').dxAutocomplete({ dataSource: ["Bern", "Lyon", "Lander"], value: options.value, - onValueChanged: function () { + onValueChanged: function() { options.setValue("test-value"); } }).appendTo(container); @@ -227,10 +227,10 @@ module Tests.viz { { valueField: 's8' } ], title: 'Long Chart\'s Title', - onPointClick: function (arg: any) { + onPointClick: function(arg: any) { arg.target.isSelected() ? arg.target.clearSelection() : arg.target.select(); }, - onSeriesClick: function (arg: any) { + onSeriesClick: function(arg: any) { arg.target.isVisible() ? arg.target.hide() : arg.target.show(); } }; @@ -298,8 +298,8 @@ module Tests.data { pageSize: 25, paginate: true, - map: function (item) { return item; }, - postProcess: function (data) { return data; }, + map: function(item) { return item; }, + postProcess: function(data) { return data; }, searchExpr: "expr", searchOperation: "contains", searchValue: "somevalue", @@ -313,7 +313,7 @@ module Tests.data { }); new DevExpress.data.CustomStore(Sets a color for a point when it is selected.
*/ - color?: string; - /** Specifies the diameter of a selected point in the series that represents data points as symbols (not as bars for instance). */ - size?: number; - }; - /** Specifies the point diameter in pixels for those series that represent data points as symbols (not as bars for instance). */ + /** Specifies the diameter of a hovered point in the series that represents data points as symbols (not as bars for instance). */ size?: number; - /** Specifies a symbol for presenting points of the line and area series. */ - symbol?: string; - visible?: boolean; + }; + /** Specifies what series points to highlight when a point is selected. */ + selectionMode?: string; + /** An object defining configuration options for a selected point. */ + selectionStyle?: { + /** An object defining the border options for a selected point. */ + border?: viz.core.Border; + /**Sets a color for a point when it is selected.
*/ + color?: string; + /** Specifies the diameter of a selected point in the series that represents data points as symbols (not as bars for instance). */ + size?: number; + }; + /** Specifies the point diameter in pixels for those series that represent data points as symbols (not as bars for instance). */ + size?: number; + /** Specifies a symbol for presenting points of the line and area series. */ + symbol?: string; + visible?: boolean; } export interface ChartCommonPointOptions extends CommonPointOptions { - /** An object specifying the parameters of an image that is used as a point marker. */ - image?: { - /** Specifies the height of an image that is used as a point marker. */ - height?: any; - /** Specifies a URL leading to the image to be used as a point marker. */ - url?: any; - /** Specifies the width of an image that is used as a point marker. */ - width?: any; - }; + /** An object specifying the parameters of an image that is used as a point marker. */ + image?: { + /** Specifies the height of an image that is used as a point marker. */ + height?: any; + /** Specifies a URL leading to the image to be used as a point marker. */ + url?: any; + /** Specifies the width of an image that is used as a point marker. */ + width?: any; + }; } export interface PolarCommonPointOptions extends CommonPointOptions { - /** An object specifying the parameters of an image that is used as a point marker. */ - image?: { - /** Specifies the height of an image that is used as a point marker. */ - height?: number; - /** Specifies a URL leading to the image to be used as a point marker. */ - url?: string; - /** Specifies the width of an image that is used as a point marker. */ - width?: number; - }; + /** An object specifying the parameters of an image that is used as a point marker. */ + image?: { + /** Specifies the height of an image that is used as a point marker. */ + height?: number; + /** Specifies a URL leading to the image to be used as a point marker. */ + url?: string; + /** Specifies the width of an image that is used as a point marker. */ + width?: number; + }; } /** An object that defines configuration options for chart series. */ export interface CommonSeriesConfig extends BaseCommonSeriesConfig { @@ -5091,17 +5091,17 @@ declare module DevExpress.viz.charts { text?: string; } export interface AxisLabel { - /** Specifies the text for a hint that appears when a user hovers the mouse pointer over a label on the value axis. */ + /** Specifies the text for a hint that appears when a user hovers the mouse pointer over a label on the value axis. */ customizeHint?: (argument: { value: any; valueText: string }) => string; - /** Specifies a callback function that returns the text to be displayed in value axis labels. */ + /** Specifies a callback function that returns the text to be displayed in value axis labels. */ customizeText?: (argument: { value: any; valueText: string }) => string; - /** Specifies a format for the text displayed by axis labels. */ + /** Specifies a format for the text displayed by axis labels. */ format?: string; - /** Specifies a precision for the formatted value displayed in the axis labels. */ + /** Specifies a precision for the formatted value displayed in the axis labels. */ precision?: number; } - export interface ChartAxisLabel extends ChartCommonAxisLabel, AxisLabel {} - export interface PolarAxisLabel extends PolarCommonAxisLabel, AxisLabel {} + export interface ChartAxisLabel extends ChartCommonAxisLabel, AxisLabel { } + export interface PolarAxisLabel extends PolarCommonAxisLabel, AxisLabel { } export interface AxisTitle extends CommonAxisTitle { /** Specifies the text for the value axis title. */ text?: string; @@ -5117,7 +5117,7 @@ declare module DevExpress.viz.charts { value?: any; } export interface PolarConstantLine extends PolarCommonConstantLineStyle { - /** An object defining constant line label options. */ + /** An object defining constant line label options. */ label?: PolarConstantLineLabel; /** Specifies a value to be displayed by a constant line. */ value?: any; @@ -5170,7 +5170,7 @@ declare module DevExpress.viz.charts { /** Specifies the elements that will be highlighted when the argument axis is hovered over. */ hoverMode?: string; } - export interface ChartArgumentAxis extends ChartAxis, ArgumentAxis {} + export interface ChartArgumentAxis extends ChartAxis, ArgumentAxis { } export interface PolarArgumentAxis extends PolarAxis, ArgumentAxis { /** Specifies a start angle for the argument axis in degrees. */ startAngle?: number; @@ -5186,7 +5186,7 @@ declare module DevExpress.viz.charts { showZero?: boolean; /** Specifies the desired type of axis values. */ valueType?: string; - } + } export interface ChartValueAxis extends ChartAxis, ValueAxis { /** Specifies the spacing, in pixels, between multiple value axes in a chart. */ multipleAxesSpacing?: number; @@ -5385,7 +5385,7 @@ declare module DevExpress.viz.charts { /** Specifies whether a single series or multiple series can be selected in the chart. */ seriesSelectionMode?: string; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } export interface Legend extends AdvancedLegend { /** Specifies whether the legend is located outside or inside the chart's plot. */ @@ -5580,7 +5580,7 @@ declare module DevExpress.viz.charts { onLegendClick?: any; legendClick?: any; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } /** A circular chart widget for HTML JS applications. */ export class dxPieChart extends BaseChart {