smart-webcomponents-react 14.2.83 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alertwindow/alertwindow.d.ts +5 -5
- package/alertwindow/alertwindow.esm.js +10 -85
- package/alertwindow/alertwindow.umd.js +1134 -1209
- package/array/array.d.ts +5 -5
- package/array/array.esm.js +13 -88
- package/array/array.umd.js +752 -827
- package/barcode/barcode.d.ts +3 -3
- package/barcode/barcode.esm.js +6 -61
- package/barcode/barcode.umd.js +311 -366
- package/button/dropdownbutton.d.ts +2 -2
- package/button/multisplitbutton.d.ts +2 -2
- package/calendar/calendar.d.ts +2 -2
- package/calendar/calendar.esm.js +4 -49
- package/calendar/calendar.umd.js +710 -755
- package/card/cardview.d.ts +1 -1
- package/cardview/cardview.d.ts +1 -1
- package/cardview/cardview.esm.js +2 -37
- package/cardview/cardview.umd.js +515 -550
- package/chart/chart.d.ts +9 -9
- package/chart/chart.esm.js +18 -133
- package/chart/chart.umd.js +822 -937
- package/chart/ganttchart.d.ts +20 -20
- package/combobox/combobox.d.ts +4 -4
- package/combobox/combobox.esm.js +8 -73
- package/combobox/combobox.umd.js +1341 -1406
- package/datetimepicker/datetimepicker.d.ts +1 -1
- package/datetimepicker/datetimepicker.esm.js +2 -37
- package/datetimepicker/datetimepicker.umd.js +826 -861
- package/dialogwindow/dialogwindow.d.ts +5 -5
- package/dialogwindow/dialogwindow.esm.js +10 -85
- package/dialogwindow/dialogwindow.umd.js +1134 -1209
- package/dockinglayout/dockinglayout.d.ts +7 -7
- package/dockinglayout/dockinglayout.esm.js +14 -109
- package/dockinglayout/dockinglayout.umd.js +765 -860
- package/dropdownbutton/dropdownbutton.d.ts +2 -2
- package/dropdownbutton/dropdownbutton.esm.js +4 -49
- package/dropdownbutton/dropdownbutton.umd.js +527 -572
- package/dropdownlist/dropdownlist.d.ts +4 -4
- package/dropdownlist/dropdownlist.esm.js +8 -73
- package/dropdownlist/dropdownlist.umd.js +1275 -1340
- package/editor/editor.d.ts +11 -9
- package/editor/editor.esm.js +14 -109
- package/editor/editor.umd.js +911 -1006
- package/fileupload/fileupload.d.ts +2 -1
- package/filterbuilder/filterbuilder.d.ts +1 -1
- package/filterbuilder/filterbuilder.esm.js +2 -37
- package/filterbuilder/filterbuilder.umd.js +463 -498
- package/filterpanel/filterpanel.d.ts +1 -1
- package/filterpanel/filterpanel.esm.js +2 -37
- package/filterpanel/filterpanel.umd.js +354 -389
- package/form/form.d.ts +1 -1
- package/form/form.esm.js +4 -49
- package/form/form.umd.js +1016 -1061
- package/form/formgroup.d.ts +1 -1
- package/ganttchart/ganttchart.d.ts +20 -20
- package/ganttchart/ganttchart.esm.js +40 -265
- package/ganttchart/ganttchart.umd.js +1666 -1891
- package/gauge/gauge.d.ts +2 -2
- package/gauge/gauge.esm.js +4 -49
- package/gauge/gauge.umd.js +664 -709
- package/grid/grid.d.ts +56 -51
- package/grid/grid.esm.js +96 -460
- package/grid/grid.umd.js +2107 -2471
- package/index.d.ts +45 -3
- package/input/input.d.ts +2 -2
- package/input/input.esm.js +4 -49
- package/input/input.umd.js +505 -550
- package/input/numberinput.d.ts +2 -2
- package/input/phoneinput.d.ts +4 -4
- package/kanban/kanban.d.ts +6 -6
- package/kanban/kanban.esm.js +12 -97
- package/kanban/kanban.umd.js +1334 -1419
- package/layout/dockinglayout.d.ts +7 -7
- package/listbox/listbox.d.ts +5 -5
- package/listbox/listbox.esm.js +10 -85
- package/listbox/listbox.umd.js +1170 -1245
- package/listmenu/listmenu.d.ts +1 -1
- package/listmenu/listmenu.esm.js +2 -37
- package/listmenu/listmenu.umd.js +1005 -1040
- package/menu/listmenu.d.ts +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +2 -37
- package/menu/menu.umd.js +1025 -1060
- package/multilinetextbox/multilinetextbox.d.ts +1 -1
- package/multilinetextbox/multilinetextbox.esm.js +2 -37
- package/multilinetextbox/multilinetextbox.umd.js +907 -942
- package/multilinewindow/multilinewindow.d.ts +5 -5
- package/multilinewindow/multilinewindow.esm.js +10 -85
- package/multilinewindow/multilinewindow.umd.js +1134 -1209
- package/multisplitbutton/multisplitbutton.d.ts +2 -2
- package/multisplitbutton/multisplitbutton.esm.js +4 -49
- package/multisplitbutton/multisplitbutton.umd.js +941 -986
- package/numberinput/numberinput.d.ts +2 -2
- package/numberinput/numberinput.esm.js +4 -49
- package/numberinput/numberinput.umd.js +348 -393
- package/numerictextbox/numerictextbox.d.ts +1 -1
- package/numerictextbox/numerictextbox.esm.js +2 -37
- package/numerictextbox/numerictextbox.umd.js +592 -627
- package/package.json +1 -1
- package/phoneinput/phoneinput.d.ts +4 -4
- package/phoneinput/phoneinput.esm.js +8 -73
- package/phoneinput/phoneinput.umd.js +386 -451
- package/pivottable/pivottable.d.ts +3 -3
- package/pivottable/pivottable.esm.js +6 -61
- package/pivottable/pivottable.umd.js +762 -817
- package/progresswindow/progresswindow.d.ts +5 -5
- package/progresswindow/progresswindow.esm.js +10 -85
- package/progresswindow/progresswindow.umd.js +1134 -1209
- package/promptwindow/promptwindow.d.ts +5 -5
- package/promptwindow/promptwindow.esm.js +10 -85
- package/promptwindow/promptwindow.umd.js +1134 -1209
- package/qrcode/qrcode.d.ts +3 -3
- package/qrcode/qrcode.esm.js +6 -61
- package/qrcode/qrcode.umd.js +333 -388
- package/querybuilder/querybuilder.d.ts +6 -1
- package/querybuilder/querybuilder.esm.js +14 -38
- package/querybuilder/querybuilder.umd.js +446 -470
- package/rating/rating.d.ts +1 -1
- package/rating/rating.esm.js +2 -37
- package/rating/rating.umd.js +261 -296
- package/scheduler/scheduler.d.ts +17 -17
- package/scheduler/scheduler.esm.js +34 -229
- package/scheduler/scheduler.umd.js +1782 -1977
- package/slider/slider.d.ts +2 -2
- package/slider/slider.esm.js +4 -49
- package/slider/slider.umd.js +642 -687
- package/source/modules/smart.accordion.js +1 -1
- package/source/modules/smart.array.js +2 -2
- package/source/modules/smart.barcode.js +1 -1
- package/source/modules/smart.breadcrumb.js +1 -1
- package/source/modules/smart.button.js +1 -1
- package/source/modules/smart.buttongroup.js +1 -1
- package/source/modules/smart.calendar.js +3 -3
- package/source/modules/smart.card.js +1 -1
- package/source/modules/smart.cardview.js +4 -4
- package/source/modules/smart.carousel.js +1 -1
- package/source/modules/smart.chart.js +1 -1
- package/source/modules/smart.checkbox.js +1 -1
- package/source/modules/smart.checkinput.js +2 -2
- package/source/modules/smart.chip.js +1 -1
- package/source/modules/smart.colorinput.js +2 -2
- package/source/modules/smart.colorpanel.js +2 -2
- package/source/modules/smart.colorpicker.js +2 -2
- package/source/modules/smart.combobox.js +2 -2
- package/source/modules/smart.common.js +1 -1
- package/source/modules/smart.countryinput.js +2 -2
- package/source/modules/smart.dateinput.js +3 -3
- package/source/modules/smart.daterangeinput.js +4 -4
- package/source/modules/smart.datetimepicker.js +3 -3
- package/source/modules/smart.dockinglayout.js +1 -1
- package/source/modules/smart.dropdownbutton.js +1 -1
- package/source/modules/smart.dropdownlist.js +2 -2
- package/source/modules/smart.editor.js +5 -5
- package/source/modules/smart.element.js +1 -1
- package/source/modules/smart.fileupload.js +3 -3
- package/source/modules/smart.form.js +2 -2
- package/source/modules/smart.formulaparser.js +1 -1
- package/source/modules/smart.ganttchart.js +5 -5
- package/source/modules/smart.gauge.js +1 -1
- package/source/modules/smart.grid.js +14 -14
- package/source/modules/smart.gridpanel.js +4 -4
- package/source/modules/smart.input.js +2 -2
- package/source/modules/smart.kanban.js +5 -5
- package/source/modules/smart.layout.js +1 -1
- package/source/modules/smart.led.js +1 -1
- package/source/modules/smart.listbox.js +2 -2
- package/source/modules/smart.listmenu.js +1 -1
- package/source/modules/smart.map.js +1 -1
- package/source/modules/smart.maskedtextbox.js +2 -2
- package/source/modules/smart.menu.js +1 -1
- package/source/modules/smart.multicomboinput.js +2 -2
- package/source/modules/smart.multiinput.js +2 -2
- package/source/modules/smart.multilinetextbox.js +2 -2
- package/source/modules/smart.multisplitbutton.js +2 -2
- package/source/modules/smart.numberinput.js +2 -2
- package/source/modules/smart.numerictextbox.js +2 -2
- package/source/modules/smart.pager.js +2 -2
- package/source/modules/smart.passwordinput.js +2 -2
- package/source/modules/smart.passwordtextbox.js +2 -2
- package/source/modules/smart.path.js +1 -1
- package/source/modules/smart.phoneinput.js +2 -2
- package/source/modules/smart.pivottable.js +3 -3
- package/source/modules/smart.progressbar.js +1 -1
- package/source/modules/smart.qrcode.js +1 -1
- package/source/modules/smart.querybuilder.js +5 -5
- package/source/modules/smart.radiobutton.js +1 -1
- package/source/modules/smart.rating.js +1 -1
- package/source/modules/smart.router.js +1 -1
- package/source/modules/smart.scheduler.js +4 -4
- package/source/modules/smart.scrollbar.js +1 -1
- package/source/modules/smart.slider.js +1 -1
- package/source/modules/smart.sortable.js +1 -1
- package/source/modules/smart.splitter.js +1 -1
- package/source/modules/smart.switchbutton.js +1 -1
- package/source/modules/smart.table.js +3 -3
- package/source/modules/smart.tabs.js +1 -1
- package/source/modules/smart.tank.js +1 -1
- package/source/modules/smart.textarea.js +2 -2
- package/source/modules/smart.textbox.js +2 -2
- package/source/modules/smart.timeinput.js +2 -2
- package/source/modules/smart.timepicker.js +1 -1
- package/source/modules/smart.toast.js +1 -1
- package/source/modules/smart.tooltip.js +1 -1
- package/source/modules/smart.tree.js +1 -1
- package/source/modules/smart.validator.js +1 -1
- package/source/modules/smart.window.js +2 -2
- package/source/smart.accordion.js +1 -1
- package/source/smart.ajax.js +1 -1
- package/source/smart.array.js +1 -1
- package/source/smart.barcode.js +1 -1
- package/source/smart.bootstrap.js +1 -1
- package/source/smart.breadcrumb.js +1 -1
- package/source/smart.button.js +1 -1
- package/source/smart.buttongroup.js +1 -1
- package/source/smart.calendar.js +2 -2
- package/source/smart.card.js +1 -1
- package/source/smart.cardview.js +1 -1
- package/source/smart.carousel.js +1 -1
- package/source/smart.chart.annotations.js +1 -1
- package/source/smart.chart.api.js +1 -1
- package/source/smart.chart.core.js +1 -1
- package/source/smart.chart.js +1 -1
- package/source/smart.chart.rangeselector.js +1 -1
- package/source/smart.chart.waterfall.js +1 -1
- package/source/smart.checkbox.js +1 -1
- package/source/smart.checkinput.js +1 -1
- package/source/smart.chip.js +1 -1
- package/source/smart.colorinput.js +1 -1
- package/source/smart.colorpanel.js +1 -1
- package/source/smart.colorpicker.js +1 -1
- package/source/smart.combobox.js +1 -1
- package/source/smart.complex.js +1 -1
- package/source/smart.core.js +1 -1
- package/source/smart.countryinput.js +1 -1
- package/source/smart.data.js +1 -1
- package/source/smart.date.js +1 -1
- package/source/smart.dateformatpanel.js +1 -1
- package/source/smart.dateinput.js +1 -1
- package/source/smart.daterangeinput.js +1 -1
- package/source/smart.datetimepicker.js +1 -1
- package/source/smart.dockinglayout.js +1 -1
- package/source/smart.draw.js +1 -1
- package/source/smart.dropdownbutton.js +1 -1
- package/source/smart.dropdownlist.js +1 -1
- package/source/smart.editor.js +2 -2
- package/source/smart.element.js +1 -1
- package/source/smart.elements.js +17 -17
- package/source/smart.export.js +1 -1
- package/source/smart.fileupload.js +2 -2
- package/source/smart.filter.js +1 -1
- package/source/smart.filterbuilder.js +2 -2
- package/source/smart.filterpanel.js +1 -1
- package/source/smart.form.js +1 -1
- package/source/smart.format.js +1 -1
- package/source/smart.formulaparser.js +1 -1
- package/source/smart.ganttchart.js +2 -2
- package/source/smart.gauge.js +1 -1
- package/source/smart.grid.cell.js +2 -2
- package/source/smart.grid.chart.js +1 -1
- package/source/smart.grid.column.js +1 -1
- package/source/smart.grid.core.js +2 -2
- package/source/smart.grid.dialog.js +2 -2
- package/source/smart.grid.edit.js +2 -2
- package/source/smart.grid.export.js +1 -1
- package/source/smart.grid.filter.js +1 -1
- package/source/smart.grid.group.js +1 -1
- package/source/smart.grid.js +1 -1
- package/source/smart.grid.menu.js +2 -2
- package/source/smart.grid.pager.js +1 -1
- package/source/smart.grid.reorder.js +1 -1
- package/source/smart.grid.resize.js +2 -2
- package/source/smart.grid.row.js +1 -1
- package/source/smart.grid.select.js +2 -2
- package/source/smart.grid.sort.js +1 -1
- package/source/smart.grid.toolbar.js +2 -2
- package/source/smart.grid.tree.js +1 -1
- package/source/smart.grid.view.js +2 -2
- package/source/smart.gridpanel.js +1 -1
- package/source/smart.input.js +2 -2
- package/source/smart.kanban.js +2 -2
- package/source/smart.layout.js +1 -1
- package/source/smart.led.js +1 -1
- package/source/smart.listbox.js +2 -2
- package/source/smart.listmenu.js +1 -1
- package/source/smart.map.js +1 -1
- package/source/smart.maskedtextbox.js +1 -1
- package/source/smart.math.js +1 -1
- package/source/smart.menu.js +1 -1
- package/source/smart.multicomboinput.js +1 -1
- package/source/smart.multiinput.js +1 -1
- package/source/smart.multilinetextbox.js +1 -1
- package/source/smart.multisplitbutton.js +1 -1
- package/source/smart.numberformatpanel.js +1 -1
- package/source/smart.numberinput.js +1 -1
- package/source/smart.numeric.js +1 -1
- package/source/smart.numerictextbox.js +1 -1
- package/source/smart.pager.js +1 -1
- package/source/smart.passwordinput.js +1 -1
- package/source/smart.passwordtextbox.js +1 -1
- package/source/smart.path.js +1 -1
- package/source/smart.phoneinput.js +1 -1
- package/source/smart.pivottable.js +1 -1
- package/source/smart.powerbutton.js +1 -1
- package/source/smart.progressbar.js +1 -1
- package/source/smart.qrcode.js +1 -1
- package/source/smart.radiobutton.js +1 -1
- package/source/smart.rating.js +1 -1
- package/source/smart.router.js +1 -1
- package/source/smart.scheduler.js +1 -1
- package/source/smart.scrollbar.js +1 -1
- package/source/smart.slider.js +1 -1
- package/source/smart.sortable.js +1 -1
- package/source/smart.splitter.js +1 -1
- package/source/smart.switchbutton.js +1 -1
- package/source/smart.table.js +1 -1
- package/source/smart.tabs.js +1 -1
- package/source/smart.tank.js +1 -1
- package/source/smart.textarea.js +1 -1
- package/source/smart.textbox.js +1 -1
- package/source/smart.tickintervalhandler.js +1 -1
- package/source/smart.timeinput.js +1 -1
- package/source/smart.timepicker.js +1 -1
- package/source/smart.toast.js +1 -1
- package/source/smart.tooltip.js +1 -1
- package/source/smart.tree.js +1 -1
- package/source/smart.validationpanel.js +1 -1
- package/source/smart.validator.js +1 -1
- package/source/smart.window.js +1 -1
- package/source/styles/components/smart.grid.css +1 -1
- package/source/styles/default/scss/smart.grid.scss +10 -3
- package/source/styles/default/smart.grid.css +7 -3
- package/source/styles/smart.default.css +1 -1
- package/source/typescript/smart.editor.d.ts +4 -2
- package/source/typescript/smart.elements.d.ts +45 -3
- package/source/typescript/smart.fileupload.d.ts +2 -1
- package/source/typescript/smart.grid.d.ts +34 -0
- package/source/typescript/smart.querybuilder.d.ts +5 -0
- package/splitter/splitter.d.ts +3 -3
- package/splitter/splitter.esm.js +6 -61
- package/splitter/splitter.umd.js +901 -956
- package/table/pivottable.d.ts +3 -3
- package/table/table.d.ts +7 -7
- package/table/table.esm.js +14 -109
- package/table/table.umd.js +1278 -1373
- package/tabs/tabs.d.ts +4 -4
- package/tabs/tabs.esm.js +8 -73
- package/tabs/tabs.umd.js +875 -940
- package/tabs/tabswindow.d.ts +5 -5
- package/tabswindow/tabswindow.d.ts +5 -5
- package/tabswindow/tabswindow.esm.js +10 -85
- package/tabswindow/tabswindow.umd.js +1134 -1209
- package/tank/tank.d.ts +2 -2
- package/tank/tank.esm.js +4 -49
- package/tank/tank.umd.js +598 -643
- package/textbox/multilinetextbox.d.ts +1 -1
- package/textbox/numerictextbox.d.ts +1 -1
- package/timepicker/datetimepicker.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +2 -37
- package/toast/toast.umd.js +397 -432
- package/tree/tree.d.ts +4 -4
- package/tree/tree.esm.js +8 -73
- package/tree/tree.umd.js +1310 -1375
- package/waitwindow/waitwindow.d.ts +5 -5
- package/waitwindow/waitwindow.esm.js +10 -85
- package/waitwindow/waitwindow.umd.js +1134 -1209
- package/window/alertwindow.d.ts +5 -5
- package/window/dialogwindow.d.ts +5 -5
- package/window/multilinewindow.d.ts +5 -5
- package/window/progresswindow.d.ts +5 -5
- package/window/promptwindow.d.ts +5 -5
- package/window/tabswindow.d.ts +5 -5
- package/window/waitwindow.d.ts +5 -5
- package/window/window.d.ts +5 -5
- package/window/window.esm.js +10 -85
- package/window/window.umd.js +1134 -1209
package/grid/grid.esm.js
CHANGED
|
@@ -9,31 +9,6 @@ import '../source/modules/smart.grid';
|
|
|
9
9
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
-
/*! *****************************************************************************
|
|
13
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
14
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
15
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
16
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
|
|
18
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
19
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
20
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
21
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
22
|
-
|
|
23
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
24
|
-
and limitations under the License.
|
|
25
|
-
***************************************************************************** */
|
|
26
|
-
|
|
27
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
28
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
29
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
31
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
32
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
33
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
12
|
const Smart = window.Smart;
|
|
38
13
|
/**
|
|
39
14
|
Data Grid UI Component that covers everything from paging, sorting, grouping, filtering, and editing to row and column virtualization, right-to-left layout, export to Excel and PDF and Accessibility.
|
|
@@ -325,7 +300,7 @@ class Grid extends React.Component {
|
|
|
325
300
|
this.nativeElement.onAfterInit = value;
|
|
326
301
|
}
|
|
327
302
|
}
|
|
328
|
-
/**
|
|
303
|
+
/** Sets the grid's image upload settings for the image columns.
|
|
329
304
|
* Property type: any
|
|
330
305
|
*/
|
|
331
306
|
get onChartInit() {
|
|
@@ -336,7 +311,7 @@ class Grid extends React.Component {
|
|
|
336
311
|
this.nativeElement.onChartInit = value;
|
|
337
312
|
}
|
|
338
313
|
}
|
|
339
|
-
/** Describes the
|
|
314
|
+
/** Describes the paging settings.
|
|
340
315
|
* Property type: any
|
|
341
316
|
*/
|
|
342
317
|
get onRender() {
|
|
@@ -347,7 +322,7 @@ class Grid extends React.Component {
|
|
|
347
322
|
this.nativeElement.onRender = value;
|
|
348
323
|
}
|
|
349
324
|
}
|
|
350
|
-
/**
|
|
325
|
+
/** Describes the pager settings.
|
|
351
326
|
* Property type: any
|
|
352
327
|
*/
|
|
353
328
|
get onLoad() {
|
|
@@ -358,7 +333,7 @@ class Grid extends React.Component {
|
|
|
358
333
|
this.nativeElement.onLoad = value;
|
|
359
334
|
}
|
|
360
335
|
}
|
|
361
|
-
/** Sets the
|
|
336
|
+
/** Sets the row details.
|
|
362
337
|
* Property type: {(event: KeyboardEvent): void}
|
|
363
338
|
*/
|
|
364
339
|
get onKey() {
|
|
@@ -369,7 +344,7 @@ class Grid extends React.Component {
|
|
|
369
344
|
this.nativeElement.onKey = value;
|
|
370
345
|
}
|
|
371
346
|
}
|
|
372
|
-
/**
|
|
347
|
+
/** Sets the scroll mode settings.
|
|
373
348
|
* Property type: {(index: number, row: GridRow): void}
|
|
374
349
|
*/
|
|
375
350
|
get onRowInit() {
|
|
@@ -380,7 +355,7 @@ class Grid extends React.Component {
|
|
|
380
355
|
this.nativeElement.onRowInit = value;
|
|
381
356
|
}
|
|
382
357
|
}
|
|
383
|
-
/** Describes the
|
|
358
|
+
/** Describes the column header settings.
|
|
384
359
|
* Property type: {(index: number, row: GridRow, details: HTMLElement): void}
|
|
385
360
|
*/
|
|
386
361
|
get onRowDetailInit() {
|
|
@@ -391,7 +366,7 @@ class Grid extends React.Component {
|
|
|
391
366
|
this.nativeElement.onRowDetailInit = value;
|
|
392
367
|
}
|
|
393
368
|
}
|
|
394
|
-
/** Describes the
|
|
369
|
+
/** Describes the summary row settings.
|
|
395
370
|
* Property type: {(index: number, row: GridRow, details: HTMLElement): void}
|
|
396
371
|
*/
|
|
397
372
|
get onRowDetailUpdated() {
|
|
@@ -402,7 +377,7 @@ class Grid extends React.Component {
|
|
|
402
377
|
this.nativeElement.onRowDetailUpdated = value;
|
|
403
378
|
}
|
|
404
379
|
}
|
|
405
|
-
/** Describes the
|
|
380
|
+
/** Describes the settings for the group header.
|
|
406
381
|
* Property type: {(index: number, row: GridRow, history: any[]): void}
|
|
407
382
|
*/
|
|
408
383
|
get onRowHistory() {
|
|
@@ -413,7 +388,7 @@ class Grid extends React.Component {
|
|
|
413
388
|
this.nativeElement.onRowHistory = value;
|
|
414
389
|
}
|
|
415
390
|
}
|
|
416
|
-
/** Describes the
|
|
391
|
+
/** Describes the header settings of the grid.
|
|
417
392
|
* Property type: {(index: number, row: GridRow, history: any[]): void}
|
|
418
393
|
*/
|
|
419
394
|
get onRowStyle() {
|
|
@@ -424,7 +399,7 @@ class Grid extends React.Component {
|
|
|
424
399
|
this.nativeElement.onRowStyle = value;
|
|
425
400
|
}
|
|
426
401
|
}
|
|
427
|
-
/**
|
|
402
|
+
/** Describes the footer settings of the grid.
|
|
428
403
|
* Property type: {(index: number[], row: GridRow[]): void}
|
|
429
404
|
*/
|
|
430
405
|
get onRowInserted() {
|
|
@@ -435,7 +410,7 @@ class Grid extends React.Component {
|
|
|
435
410
|
this.nativeElement.onRowInserted = value;
|
|
436
411
|
}
|
|
437
412
|
}
|
|
438
|
-
/**
|
|
413
|
+
/** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
|
|
439
414
|
* Property type: {(indexes: number[], rows: GridRow[]): void}
|
|
440
415
|
*/
|
|
441
416
|
get onRowRemoved() {
|
|
@@ -446,7 +421,7 @@ class Grid extends React.Component {
|
|
|
446
421
|
this.nativeElement.onRowRemoved = value;
|
|
447
422
|
}
|
|
448
423
|
}
|
|
449
|
-
/**
|
|
424
|
+
/** The rows property is used to describe all rows displayed in the grid.
|
|
450
425
|
* Property type: {(index: number[], row: GridRow[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}
|
|
451
426
|
*/
|
|
452
427
|
get onRowUpdate() {
|
|
@@ -457,7 +432,7 @@ class Grid extends React.Component {
|
|
|
457
432
|
this.nativeElement.onRowUpdate = value;
|
|
458
433
|
}
|
|
459
434
|
}
|
|
460
|
-
/** Describes
|
|
435
|
+
/** Describes the selection settings.
|
|
461
436
|
* Property type: {(index: number[], row: GridRow[]): void}
|
|
462
437
|
*/
|
|
463
438
|
get onRowUpdated() {
|
|
@@ -468,7 +443,7 @@ class Grid extends React.Component {
|
|
|
468
443
|
this.nativeElement.onRowUpdated = value;
|
|
469
444
|
}
|
|
470
445
|
}
|
|
471
|
-
/**
|
|
446
|
+
/** Describes sorting settings.
|
|
472
447
|
* Property type: {(index: number, data: any, row: GridRow[]): void}
|
|
473
448
|
*/
|
|
474
449
|
get onRowClass() {
|
|
@@ -590,6 +565,17 @@ class Grid extends React.Component {
|
|
|
590
565
|
}
|
|
591
566
|
}
|
|
592
567
|
/** undefined
|
|
568
|
+
* Property type: GridUploadSettings
|
|
569
|
+
*/
|
|
570
|
+
get uploadSettings() {
|
|
571
|
+
return this.nativeElement ? this.nativeElement.uploadSettings : undefined;
|
|
572
|
+
}
|
|
573
|
+
set uploadSettings(value) {
|
|
574
|
+
if (this.nativeElement) {
|
|
575
|
+
this.nativeElement.uploadSettings = value;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/** undefined
|
|
593
579
|
* Property type: GridPaging
|
|
594
580
|
*/
|
|
595
581
|
get paging() {
|
|
@@ -734,7 +720,7 @@ class Grid extends React.Component {
|
|
|
734
720
|
}
|
|
735
721
|
// Gets the properties of the React component.
|
|
736
722
|
get properties() {
|
|
737
|
-
return ["appearance", "behavior", "layout", "locale", "clipboard", "columns", "contextMenu", "columnMenu", "columnGroups", "conditionalFormatting", "charting", "checkBoxes", "dataExport", "dataSource", "dataSourceSettings", "editing", "filtering", "grouping", "messages", "onCellValue", "onCellUpdate", "onCellRender", "onBeforeInit", "onInit", "onAfterInit", "onChartInit", "onRender", "onLoad", "onKey", "onRowInit", "onRowDetailInit", "onRowDetailUpdated", "onRowHistory", "onRowStyle", "onRowInserted", "onRowRemoved", "onRowUpdate", "onRowUpdated", "onRowClass", "onCellClass", "onColumnInit", "onColumnInserted", "onColumnRemoved", "onColumnUpdated", "onColumnClone", "onCommand", "rowCSSRules", "currentUser", "users", "paging", "pager", "rowDetail", "scrolling", "columnHeader", "summaryRow", "groupHeader", "header", "footer", "rightToLeft", "rows", "selection", "sorting"];
|
|
723
|
+
return ["appearance", "behavior", "layout", "locale", "clipboard", "columns", "contextMenu", "columnMenu", "columnGroups", "conditionalFormatting", "charting", "checkBoxes", "dataExport", "dataSource", "dataSourceSettings", "editing", "filtering", "grouping", "messages", "onCellValue", "onCellUpdate", "onCellRender", "onBeforeInit", "onInit", "onAfterInit", "onChartInit", "onRender", "onLoad", "onKey", "onRowInit", "onRowDetailInit", "onRowDetailUpdated", "onRowHistory", "onRowStyle", "onRowInserted", "onRowRemoved", "onRowUpdate", "onRowUpdated", "onRowClass", "onCellClass", "onColumnInit", "onColumnInserted", "onColumnRemoved", "onColumnUpdated", "onColumnClone", "onCommand", "rowCSSRules", "currentUser", "users", "uploadSettings", "paging", "pager", "rowDetail", "scrolling", "columnHeader", "summaryRow", "groupHeader", "header", "footer", "rightToLeft", "rows", "selection", "sorting"];
|
|
738
724
|
}
|
|
739
725
|
// Gets the events of the React component.
|
|
740
726
|
get eventListeners() {
|
|
@@ -760,36 +746,16 @@ class Grid extends React.Component {
|
|
|
760
746
|
* @returns {boolean}
|
|
761
747
|
*/
|
|
762
748
|
addNewRow(position) {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
return new Promise(resolve => {
|
|
766
|
-
this.nativeElement.whenRendered(() => {
|
|
767
|
-
const result = this.nativeElement.addNewRow(position);
|
|
768
|
-
resolve(result);
|
|
769
|
-
});
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
const result = yield getResultOnRender();
|
|
773
|
-
return result;
|
|
774
|
-
});
|
|
749
|
+
const result = this.nativeElement.addNewRow(position);
|
|
750
|
+
return result;
|
|
775
751
|
}
|
|
776
752
|
/** Adds a new column.
|
|
777
753
|
* @param {any} column. A Grid column object. See 'columns' property.
|
|
778
754
|
* @returns {boolean}
|
|
779
755
|
*/
|
|
780
756
|
addNewColumn(column) {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
return new Promise(resolve => {
|
|
784
|
-
this.nativeElement.whenRendered(() => {
|
|
785
|
-
const result = this.nativeElement.addNewColumn(column);
|
|
786
|
-
resolve(result);
|
|
787
|
-
});
|
|
788
|
-
});
|
|
789
|
-
};
|
|
790
|
-
const result = yield getResultOnRender();
|
|
791
|
-
return result;
|
|
792
|
-
});
|
|
757
|
+
const result = this.nativeElement.addNewColumn(column);
|
|
758
|
+
return result;
|
|
793
759
|
}
|
|
794
760
|
/** Adds a new unbound row to the top or bottom. Unbound rows are not part of the Grid's dataSource. They become part of the dataSource, after an unbound row is edited.
|
|
795
761
|
* @param {number} count. The count of unbound rows.
|
|
@@ -797,18 +763,8 @@ class Grid extends React.Component {
|
|
|
797
763
|
* @returns {boolean}
|
|
798
764
|
*/
|
|
799
765
|
addUnboundRow(count, position) {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
return new Promise(resolve => {
|
|
803
|
-
this.nativeElement.whenRendered(() => {
|
|
804
|
-
const result = this.nativeElement.addUnboundRow(count, position);
|
|
805
|
-
resolve(result);
|
|
806
|
-
});
|
|
807
|
-
});
|
|
808
|
-
};
|
|
809
|
-
const result = yield getResultOnRender();
|
|
810
|
-
return result;
|
|
811
|
-
});
|
|
766
|
+
const result = this.nativeElement.addUnboundRow(count, position);
|
|
767
|
+
return result;
|
|
812
768
|
}
|
|
813
769
|
/** Adds a filter to a column. This method will apply a filter to the Grid data. Example for adding multiple filters to a column: grid.addFilter('lastName', ['CONTAINS "burke"', 'or', 'CONTAINS "peterson"']). Example for adding single filter to a column: grid.addFilter('lastName', 'CONTAINS "burke"'). Example for adding numeric filter: grid.addFilter('quantity', '<= 5')
|
|
814
770
|
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
@@ -893,18 +849,8 @@ class Grid extends React.Component {
|
|
|
893
849
|
* @returns {boolean}
|
|
894
850
|
*/
|
|
895
851
|
areAllRowsSelected() {
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
return new Promise(resolve => {
|
|
899
|
-
this.nativeElement.whenRendered(() => {
|
|
900
|
-
const result = this.nativeElement.areAllRowsSelected();
|
|
901
|
-
resolve(result);
|
|
902
|
-
});
|
|
903
|
-
});
|
|
904
|
-
};
|
|
905
|
-
const result = yield getResultOnRender();
|
|
906
|
-
return result;
|
|
907
|
-
});
|
|
852
|
+
const result = this.nativeElement.areAllRowsSelected();
|
|
853
|
+
return result;
|
|
908
854
|
}
|
|
909
855
|
/** Starts an update operation. This is appropriate when calling multiple methods or set multiple properties at once.
|
|
910
856
|
*/
|
|
@@ -1100,18 +1046,8 @@ class Grid extends React.Component {
|
|
|
1100
1046
|
* @returns {boolean}
|
|
1101
1047
|
*/
|
|
1102
1048
|
ensureVisible(rowId, dataField) {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
return new Promise(resolve => {
|
|
1106
|
-
this.nativeElement.whenRendered(() => {
|
|
1107
|
-
const result = this.nativeElement.ensureVisible(rowId, dataField);
|
|
1108
|
-
resolve(result);
|
|
1109
|
-
});
|
|
1110
|
-
});
|
|
1111
|
-
};
|
|
1112
|
-
const result = yield getResultOnRender();
|
|
1113
|
-
return result;
|
|
1114
|
-
});
|
|
1049
|
+
const result = this.nativeElement.ensureVisible(rowId, dataField);
|
|
1050
|
+
return result;
|
|
1115
1051
|
}
|
|
1116
1052
|
/** Ends the editing. This method confirms all changes and closes the opened cell editor(s).
|
|
1117
1053
|
*/
|
|
@@ -1196,36 +1132,16 @@ class Grid extends React.Component {
|
|
|
1196
1132
|
* @returns {any[]}
|
|
1197
1133
|
*/
|
|
1198
1134
|
find(query, dataField, condition) {
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
return new Promise(resolve => {
|
|
1202
|
-
this.nativeElement.whenRendered(() => {
|
|
1203
|
-
const result = this.nativeElement.find(query, dataField, condition);
|
|
1204
|
-
resolve(result);
|
|
1205
|
-
});
|
|
1206
|
-
});
|
|
1207
|
-
};
|
|
1208
|
-
const result = yield getResultOnRender();
|
|
1209
|
-
return result;
|
|
1210
|
-
});
|
|
1135
|
+
const result = this.nativeElement.find(query, dataField, condition);
|
|
1136
|
+
return result;
|
|
1211
1137
|
}
|
|
1212
1138
|
/** Finds entries by using a query and returns an array of cells. Each cell in the array is also an array in this format: [id, dataField, value]. Example: const cells = grid.findCells('nancy'); returns all cells that have 'nancy' value. Example 2: const cells = grid.findCells('nancy, davolio'); returns all cells that have 'nancy' and 'davolio' values.
|
|
1213
1139
|
* @param {string} query. Search query. You can enter multiple search strings, by using ','. Example: 'nancy, davolio'
|
|
1214
1140
|
* @returns {any[]}
|
|
1215
1141
|
*/
|
|
1216
1142
|
findCells(query) {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
return new Promise(resolve => {
|
|
1220
|
-
this.nativeElement.whenRendered(() => {
|
|
1221
|
-
const result = this.nativeElement.findCells(query);
|
|
1222
|
-
resolve(result);
|
|
1223
|
-
});
|
|
1224
|
-
});
|
|
1225
|
-
};
|
|
1226
|
-
const result = yield getResultOnRender();
|
|
1227
|
-
return result;
|
|
1228
|
-
});
|
|
1143
|
+
const result = this.nativeElement.findCells(query);
|
|
1144
|
+
return result;
|
|
1229
1145
|
}
|
|
1230
1146
|
/** Navigates to a page, when paging is enabled.
|
|
1231
1147
|
* @param {number} index. page index
|
|
@@ -1332,307 +1248,127 @@ class Grid extends React.Component {
|
|
|
1332
1248
|
* @returns {number}
|
|
1333
1249
|
*/
|
|
1334
1250
|
getVerticalScrollMax() {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
return new Promise(resolve => {
|
|
1338
|
-
this.nativeElement.whenRendered(() => {
|
|
1339
|
-
const result = this.nativeElement.getVerticalScrollMax();
|
|
1340
|
-
resolve(result);
|
|
1341
|
-
});
|
|
1342
|
-
});
|
|
1343
|
-
};
|
|
1344
|
-
const result = yield getResultOnRender();
|
|
1345
|
-
return result;
|
|
1346
|
-
});
|
|
1251
|
+
const result = this.nativeElement.getVerticalScrollMax();
|
|
1252
|
+
return result;
|
|
1347
1253
|
}
|
|
1348
1254
|
/** Gets the position of the vertical scrollbar.
|
|
1349
1255
|
* @returns {number}
|
|
1350
1256
|
*/
|
|
1351
1257
|
getVerticalScrollValue() {
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
return new Promise(resolve => {
|
|
1355
|
-
this.nativeElement.whenRendered(() => {
|
|
1356
|
-
const result = this.nativeElement.getVerticalScrollValue();
|
|
1357
|
-
resolve(result);
|
|
1358
|
-
});
|
|
1359
|
-
});
|
|
1360
|
-
};
|
|
1361
|
-
const result = yield getResultOnRender();
|
|
1362
|
-
return result;
|
|
1363
|
-
});
|
|
1258
|
+
const result = this.nativeElement.getVerticalScrollValue();
|
|
1259
|
+
return result;
|
|
1364
1260
|
}
|
|
1365
1261
|
/** Gets the maximum position of the horizontal scrollbar. You can use this method in combination with the setHorizontalScrollValue to apply a new scroll position.
|
|
1366
1262
|
* @returns {number}
|
|
1367
1263
|
*/
|
|
1368
1264
|
getHorizontalScrollMax() {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
return new Promise(resolve => {
|
|
1372
|
-
this.nativeElement.whenRendered(() => {
|
|
1373
|
-
const result = this.nativeElement.getHorizontalScrollMax();
|
|
1374
|
-
resolve(result);
|
|
1375
|
-
});
|
|
1376
|
-
});
|
|
1377
|
-
};
|
|
1378
|
-
const result = yield getResultOnRender();
|
|
1379
|
-
return result;
|
|
1380
|
-
});
|
|
1265
|
+
const result = this.nativeElement.getHorizontalScrollMax();
|
|
1266
|
+
return result;
|
|
1381
1267
|
}
|
|
1382
1268
|
/** Gets the position of the horizontal scrollbar.
|
|
1383
1269
|
* @returns {number}
|
|
1384
1270
|
*/
|
|
1385
1271
|
getHorizontalScrollValue() {
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
return new Promise(resolve => {
|
|
1389
|
-
this.nativeElement.whenRendered(() => {
|
|
1390
|
-
const result = this.nativeElement.getHorizontalScrollValue();
|
|
1391
|
-
resolve(result);
|
|
1392
|
-
});
|
|
1393
|
-
});
|
|
1394
|
-
};
|
|
1395
|
-
const result = yield getResultOnRender();
|
|
1396
|
-
return result;
|
|
1397
|
-
});
|
|
1272
|
+
const result = this.nativeElement.getHorizontalScrollValue();
|
|
1273
|
+
return result;
|
|
1398
1274
|
}
|
|
1399
1275
|
/** Gets the columns array. Each item in the array contains the column properties which are dynamically set by the user interaction and the columns initialization data properties such as: 'label', 'dataField', 'dataType', 'visible'.
|
|
1400
1276
|
* @returns {any}
|
|
1401
1277
|
*/
|
|
1402
1278
|
getColumns() {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
return new Promise(resolve => {
|
|
1406
|
-
this.nativeElement.whenRendered(() => {
|
|
1407
|
-
const result = this.nativeElement.getColumns();
|
|
1408
|
-
resolve(result);
|
|
1409
|
-
});
|
|
1410
|
-
});
|
|
1411
|
-
};
|
|
1412
|
-
const result = yield getResultOnRender();
|
|
1413
|
-
return result;
|
|
1414
|
-
});
|
|
1279
|
+
const result = this.nativeElement.getColumns();
|
|
1280
|
+
return result;
|
|
1415
1281
|
}
|
|
1416
1282
|
/** Gets the editing cell(s), when the grid is editing.
|
|
1417
1283
|
* @returns {any[]}
|
|
1418
1284
|
*/
|
|
1419
1285
|
getEditCells() {
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
return new Promise(resolve => {
|
|
1423
|
-
this.nativeElement.whenRendered(() => {
|
|
1424
|
-
const result = this.nativeElement.getEditCells();
|
|
1425
|
-
resolve(result);
|
|
1426
|
-
});
|
|
1427
|
-
});
|
|
1428
|
-
};
|
|
1429
|
-
const result = yield getResultOnRender();
|
|
1430
|
-
return result;
|
|
1431
|
-
});
|
|
1286
|
+
const result = this.nativeElement.getEditCells();
|
|
1287
|
+
return result;
|
|
1432
1288
|
}
|
|
1433
1289
|
/** Gets the groups array.
|
|
1434
1290
|
* @returns {any[]}
|
|
1435
1291
|
*/
|
|
1436
1292
|
getGroups() {
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
return new Promise(resolve => {
|
|
1440
|
-
this.nativeElement.whenRendered(() => {
|
|
1441
|
-
const result = this.nativeElement.getGroups();
|
|
1442
|
-
resolve(result);
|
|
1443
|
-
});
|
|
1444
|
-
});
|
|
1445
|
-
};
|
|
1446
|
-
const result = yield getResultOnRender();
|
|
1447
|
-
return result;
|
|
1448
|
-
});
|
|
1293
|
+
const result = this.nativeElement.getGroups();
|
|
1294
|
+
return result;
|
|
1449
1295
|
}
|
|
1450
1296
|
/** Gets an array of columns with applied sorting. Each member in the array is with column's data field used as a key and 'sortOrder' and 'sortIndex' as a value.
|
|
1451
1297
|
* @returns {{[dataField: string]: { sortOrder: string, sortIndex: number }}}
|
|
1452
1298
|
*/
|
|
1453
1299
|
getSortedColumns() {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
return new Promise(resolve => {
|
|
1457
|
-
this.nativeElement.whenRendered(() => {
|
|
1458
|
-
const result = this.nativeElement.getSortedColumns();
|
|
1459
|
-
resolve(result);
|
|
1460
|
-
});
|
|
1461
|
-
});
|
|
1462
|
-
};
|
|
1463
|
-
const result = yield getResultOnRender();
|
|
1464
|
-
return result;
|
|
1465
|
-
});
|
|
1300
|
+
const result = this.nativeElement.getSortedColumns();
|
|
1301
|
+
return result;
|
|
1466
1302
|
}
|
|
1467
1303
|
/** Gets the selection.
|
|
1468
1304
|
* @returns {any}
|
|
1469
1305
|
*/
|
|
1470
1306
|
getSelection() {
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
return new Promise(resolve => {
|
|
1474
|
-
this.nativeElement.whenRendered(() => {
|
|
1475
|
-
const result = this.nativeElement.getSelection();
|
|
1476
|
-
resolve(result);
|
|
1477
|
-
});
|
|
1478
|
-
});
|
|
1479
|
-
};
|
|
1480
|
-
const result = yield getResultOnRender();
|
|
1481
|
-
return result;
|
|
1482
|
-
});
|
|
1307
|
+
const result = this.nativeElement.getSelection();
|
|
1308
|
+
return result;
|
|
1483
1309
|
}
|
|
1484
1310
|
/** Gets an Array where each item is an Array of row id and row data. If the Grid is used in virtual mode, the row data parameter is empty object, because the data is loaded on demand.
|
|
1485
1311
|
* @returns {any[]}
|
|
1486
1312
|
*/
|
|
1487
1313
|
getSelectedRows() {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
return new Promise(resolve => {
|
|
1491
|
-
this.nativeElement.whenRendered(() => {
|
|
1492
|
-
const result = this.nativeElement.getSelectedRows();
|
|
1493
|
-
resolve(result);
|
|
1494
|
-
});
|
|
1495
|
-
});
|
|
1496
|
-
};
|
|
1497
|
-
const result = yield getResultOnRender();
|
|
1498
|
-
return result;
|
|
1499
|
-
});
|
|
1314
|
+
const result = this.nativeElement.getSelectedRows();
|
|
1315
|
+
return result;
|
|
1500
1316
|
}
|
|
1501
1317
|
/** Gets the selected row ids.
|
|
1502
1318
|
* @returns {any[]}
|
|
1503
1319
|
*/
|
|
1504
1320
|
getSelectedRowIds() {
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
return new Promise(resolve => {
|
|
1508
|
-
this.nativeElement.whenRendered(() => {
|
|
1509
|
-
const result = this.nativeElement.getSelectedRowIds();
|
|
1510
|
-
resolve(result);
|
|
1511
|
-
});
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
const result = yield getResultOnRender();
|
|
1515
|
-
return result;
|
|
1516
|
-
});
|
|
1321
|
+
const result = this.nativeElement.getSelectedRowIds();
|
|
1322
|
+
return result;
|
|
1517
1323
|
}
|
|
1518
1324
|
/** Gets the selected row indexes.
|
|
1519
1325
|
* @returns {any[]}
|
|
1520
1326
|
*/
|
|
1521
1327
|
getSelectedRowIndexes() {
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
return new Promise(resolve => {
|
|
1525
|
-
this.nativeElement.whenRendered(() => {
|
|
1526
|
-
const result = this.nativeElement.getSelectedRowIndexes();
|
|
1527
|
-
resolve(result);
|
|
1528
|
-
});
|
|
1529
|
-
});
|
|
1530
|
-
};
|
|
1531
|
-
const result = yield getResultOnRender();
|
|
1532
|
-
return result;
|
|
1533
|
-
});
|
|
1328
|
+
const result = this.nativeElement.getSelectedRowIndexes();
|
|
1329
|
+
return result;
|
|
1534
1330
|
}
|
|
1535
1331
|
/** Gets the selected cells. The method returns an array of cell. Each cell is an array with row id, column data field and cell value.
|
|
1536
1332
|
* @returns {any[]}
|
|
1537
1333
|
*/
|
|
1538
1334
|
getSelectedCells() {
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
return new Promise(resolve => {
|
|
1542
|
-
this.nativeElement.whenRendered(() => {
|
|
1543
|
-
const result = this.nativeElement.getSelectedCells();
|
|
1544
|
-
resolve(result);
|
|
1545
|
-
});
|
|
1546
|
-
});
|
|
1547
|
-
};
|
|
1548
|
-
const result = yield getResultOnRender();
|
|
1549
|
-
return result;
|
|
1550
|
-
});
|
|
1335
|
+
const result = this.nativeElement.getSelectedCells();
|
|
1336
|
+
return result;
|
|
1551
1337
|
}
|
|
1552
1338
|
/** Gets an array of columns with applied filters.
|
|
1553
1339
|
* @returns {any}
|
|
1554
1340
|
*/
|
|
1555
1341
|
getFilteredColumns() {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
return new Promise(resolve => {
|
|
1559
|
-
this.nativeElement.whenRendered(() => {
|
|
1560
|
-
const result = this.nativeElement.getFilteredColumns();
|
|
1561
|
-
resolve(result);
|
|
1562
|
-
});
|
|
1563
|
-
});
|
|
1564
|
-
};
|
|
1565
|
-
const result = yield getResultOnRender();
|
|
1566
|
-
return result;
|
|
1567
|
-
});
|
|
1342
|
+
const result = this.nativeElement.getFilteredColumns();
|
|
1343
|
+
return result;
|
|
1568
1344
|
}
|
|
1569
1345
|
/** Gets an array of rows, which are visible and match the applied filter.
|
|
1570
1346
|
* @returns {any}
|
|
1571
1347
|
*/
|
|
1572
1348
|
getVisibleRows() {
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
return new Promise(resolve => {
|
|
1576
|
-
this.nativeElement.whenRendered(() => {
|
|
1577
|
-
const result = this.nativeElement.getVisibleRows();
|
|
1578
|
-
resolve(result);
|
|
1579
|
-
});
|
|
1580
|
-
});
|
|
1581
|
-
};
|
|
1582
|
-
const result = yield getResultOnRender();
|
|
1583
|
-
return result;
|
|
1584
|
-
});
|
|
1349
|
+
const result = this.nativeElement.getVisibleRows();
|
|
1350
|
+
return result;
|
|
1585
1351
|
}
|
|
1586
1352
|
/** Gets the result of the getVisibleRows or the rows hierarchy, when the Grid is in TreeGrid/Grouping mode.
|
|
1587
1353
|
* @returns {any}
|
|
1588
1354
|
*/
|
|
1589
1355
|
getViewRows() {
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
return new Promise(resolve => {
|
|
1593
|
-
this.nativeElement.whenRendered(() => {
|
|
1594
|
-
const result = this.nativeElement.getViewRows();
|
|
1595
|
-
resolve(result);
|
|
1596
|
-
});
|
|
1597
|
-
});
|
|
1598
|
-
};
|
|
1599
|
-
const result = yield getResultOnRender();
|
|
1600
|
-
return result;
|
|
1601
|
-
});
|
|
1356
|
+
const result = this.nativeElement.getViewRows();
|
|
1357
|
+
return result;
|
|
1602
1358
|
}
|
|
1603
1359
|
/** Gets a JSON object with the following fields: 'sort', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'.
|
|
1604
1360
|
* @returns {any}
|
|
1605
1361
|
*/
|
|
1606
1362
|
getState() {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
return new Promise(resolve => {
|
|
1610
|
-
this.nativeElement.whenRendered(() => {
|
|
1611
|
-
const result = this.nativeElement.getState();
|
|
1612
|
-
resolve(result);
|
|
1613
|
-
});
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
|
-
const result = yield getResultOnRender();
|
|
1617
|
-
return result;
|
|
1618
|
-
});
|
|
1363
|
+
const result = this.nativeElement.getState();
|
|
1364
|
+
return result;
|
|
1619
1365
|
}
|
|
1620
1366
|
/** Gets the changes from the batch edit.
|
|
1621
1367
|
* @returns {{ upDated: [{ id: string, dataField: string, oldValue: Object, newValue: Object }], deleted: [{id: string, data: Object}], added: [{id: string, data: Object}] }}
|
|
1622
1368
|
*/
|
|
1623
1369
|
getBatchEditChanges() {
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
return new Promise(resolve => {
|
|
1627
|
-
this.nativeElement.whenRendered(() => {
|
|
1628
|
-
const result = this.nativeElement.getBatchEditChanges();
|
|
1629
|
-
resolve(result);
|
|
1630
|
-
});
|
|
1631
|
-
});
|
|
1632
|
-
};
|
|
1633
|
-
const result = yield getResultOnRender();
|
|
1634
|
-
return result;
|
|
1635
|
-
});
|
|
1370
|
+
const result = this.nativeElement.getBatchEditChanges();
|
|
1371
|
+
return result;
|
|
1636
1372
|
}
|
|
1637
1373
|
/** Gets a value of a cell.
|
|
1638
1374
|
* @param {string | number} rowId. row bound id
|
|
@@ -1640,36 +1376,16 @@ class Grid extends React.Component {
|
|
|
1640
1376
|
* @returns {any}
|
|
1641
1377
|
*/
|
|
1642
1378
|
getCellValue(rowId, dataField) {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
return new Promise(resolve => {
|
|
1646
|
-
this.nativeElement.whenRendered(() => {
|
|
1647
|
-
const result = this.nativeElement.getCellValue(rowId, dataField);
|
|
1648
|
-
resolve(result);
|
|
1649
|
-
});
|
|
1650
|
-
});
|
|
1651
|
-
};
|
|
1652
|
-
const result = yield getResultOnRender();
|
|
1653
|
-
return result;
|
|
1654
|
-
});
|
|
1379
|
+
const result = this.nativeElement.getCellValue(rowId, dataField);
|
|
1380
|
+
return result;
|
|
1655
1381
|
}
|
|
1656
1382
|
/** Gets a column. Returns a Grid column object.
|
|
1657
1383
|
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1658
1384
|
* @returns {GridColumn}
|
|
1659
1385
|
*/
|
|
1660
1386
|
getColumn(dataField) {
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
return new Promise(resolve => {
|
|
1664
|
-
this.nativeElement.whenRendered(() => {
|
|
1665
|
-
const result = this.nativeElement.getColumn(dataField);
|
|
1666
|
-
resolve(result);
|
|
1667
|
-
});
|
|
1668
|
-
});
|
|
1669
|
-
};
|
|
1670
|
-
const result = yield getResultOnRender();
|
|
1671
|
-
return result;
|
|
1672
|
-
});
|
|
1387
|
+
const result = this.nativeElement.getColumn(dataField);
|
|
1388
|
+
return result;
|
|
1673
1389
|
}
|
|
1674
1390
|
/** Gets a value of a column.
|
|
1675
1391
|
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
@@ -1677,18 +1393,8 @@ class Grid extends React.Component {
|
|
|
1677
1393
|
* @returns {any}
|
|
1678
1394
|
*/
|
|
1679
1395
|
getColumnProperty(dataField, propertyName) {
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
return new Promise(resolve => {
|
|
1683
|
-
this.nativeElement.whenRendered(() => {
|
|
1684
|
-
const result = this.nativeElement.getColumnProperty(dataField, propertyName);
|
|
1685
|
-
resolve(result);
|
|
1686
|
-
});
|
|
1687
|
-
});
|
|
1688
|
-
};
|
|
1689
|
-
const result = yield getResultOnRender();
|
|
1690
|
-
return result;
|
|
1691
|
-
});
|
|
1396
|
+
const result = this.nativeElement.getColumnProperty(dataField, propertyName);
|
|
1397
|
+
return result;
|
|
1692
1398
|
}
|
|
1693
1399
|
/** Gets a value of a row.
|
|
1694
1400
|
* @param {string | number} rowId. row bound id
|
|
@@ -1696,124 +1402,54 @@ class Grid extends React.Component {
|
|
|
1696
1402
|
* @returns {any}
|
|
1697
1403
|
*/
|
|
1698
1404
|
getRowProperty(rowId, propertyName) {
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
return new Promise(resolve => {
|
|
1702
|
-
this.nativeElement.whenRendered(() => {
|
|
1703
|
-
const result = this.nativeElement.getRowProperty(rowId, propertyName);
|
|
1704
|
-
resolve(result);
|
|
1705
|
-
});
|
|
1706
|
-
});
|
|
1707
|
-
};
|
|
1708
|
-
const result = yield getResultOnRender();
|
|
1709
|
-
return result;
|
|
1710
|
-
});
|
|
1405
|
+
const result = this.nativeElement.getRowProperty(rowId, propertyName);
|
|
1406
|
+
return result;
|
|
1711
1407
|
}
|
|
1712
1408
|
/** Gets a row. Returns a Grid row object.
|
|
1713
1409
|
* @param {string | number} rowId. row bound id
|
|
1714
1410
|
* @returns {GridRow}
|
|
1715
1411
|
*/
|
|
1716
1412
|
getRow(rowId) {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
return new Promise(resolve => {
|
|
1720
|
-
this.nativeElement.whenRendered(() => {
|
|
1721
|
-
const result = this.nativeElement.getRow(rowId);
|
|
1722
|
-
resolve(result);
|
|
1723
|
-
});
|
|
1724
|
-
});
|
|
1725
|
-
};
|
|
1726
|
-
const result = yield getResultOnRender();
|
|
1727
|
-
return result;
|
|
1728
|
-
});
|
|
1413
|
+
const result = this.nativeElement.getRow(rowId);
|
|
1414
|
+
return result;
|
|
1729
1415
|
}
|
|
1730
1416
|
/** Gets a row by its index. Returns a Grid row object.
|
|
1731
1417
|
* @param {number} rowIndex. row bound index
|
|
1732
1418
|
* @returns {GridRow}
|
|
1733
1419
|
*/
|
|
1734
1420
|
getRowByIndex(rowIndex) {
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
return new Promise(resolve => {
|
|
1738
|
-
this.nativeElement.whenRendered(() => {
|
|
1739
|
-
const result = this.nativeElement.getRowByIndex(rowIndex);
|
|
1740
|
-
resolve(result);
|
|
1741
|
-
});
|
|
1742
|
-
});
|
|
1743
|
-
};
|
|
1744
|
-
const result = yield getResultOnRender();
|
|
1745
|
-
return result;
|
|
1746
|
-
});
|
|
1421
|
+
const result = this.nativeElement.getRowByIndex(rowIndex);
|
|
1422
|
+
return result;
|
|
1747
1423
|
}
|
|
1748
1424
|
/** Gets the Data source data associated to the row.
|
|
1749
1425
|
* @param {string | number} rowId. row bound id
|
|
1750
1426
|
* @returns {any}
|
|
1751
1427
|
*/
|
|
1752
1428
|
getRowData(rowId) {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
return new Promise(resolve => {
|
|
1756
|
-
this.nativeElement.whenRendered(() => {
|
|
1757
|
-
const result = this.nativeElement.getRowData(rowId);
|
|
1758
|
-
resolve(result);
|
|
1759
|
-
});
|
|
1760
|
-
});
|
|
1761
|
-
};
|
|
1762
|
-
const result = yield getResultOnRender();
|
|
1763
|
-
return result;
|
|
1764
|
-
});
|
|
1429
|
+
const result = this.nativeElement.getRowData(rowId);
|
|
1430
|
+
return result;
|
|
1765
1431
|
}
|
|
1766
1432
|
/** Gets the Row's id by a row index.
|
|
1767
1433
|
* @param {number} rowIndex. row index
|
|
1768
1434
|
* @returns {string | number}
|
|
1769
1435
|
*/
|
|
1770
1436
|
getRowId(rowIndex) {
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
return new Promise(resolve => {
|
|
1774
|
-
this.nativeElement.whenRendered(() => {
|
|
1775
|
-
const result = this.nativeElement.getRowId(rowIndex);
|
|
1776
|
-
resolve(result);
|
|
1777
|
-
});
|
|
1778
|
-
});
|
|
1779
|
-
};
|
|
1780
|
-
const result = yield getResultOnRender();
|
|
1781
|
-
return result;
|
|
1782
|
-
});
|
|
1437
|
+
const result = this.nativeElement.getRowId(rowIndex);
|
|
1438
|
+
return result;
|
|
1783
1439
|
}
|
|
1784
1440
|
/** Gets whether a column's drop-down menu is opened.
|
|
1785
1441
|
* @returns {boolean}
|
|
1786
1442
|
*/
|
|
1787
1443
|
hasMenu() {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
return new Promise(resolve => {
|
|
1791
|
-
this.nativeElement.whenRendered(() => {
|
|
1792
|
-
const result = this.nativeElement.hasMenu();
|
|
1793
|
-
resolve(result);
|
|
1794
|
-
});
|
|
1795
|
-
});
|
|
1796
|
-
};
|
|
1797
|
-
const result = yield getResultOnRender();
|
|
1798
|
-
return result;
|
|
1799
|
-
});
|
|
1444
|
+
const result = this.nativeElement.hasMenu();
|
|
1445
|
+
return result;
|
|
1800
1446
|
}
|
|
1801
1447
|
/** This method returns true, if any rows in the Grid are selected.
|
|
1802
1448
|
* @returns {boolean}
|
|
1803
1449
|
*/
|
|
1804
1450
|
hasSelectedRows() {
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
return new Promise(resolve => {
|
|
1808
|
-
this.nativeElement.whenRendered(() => {
|
|
1809
|
-
const result = this.nativeElement.hasSelectedRows();
|
|
1810
|
-
resolve(result);
|
|
1811
|
-
});
|
|
1812
|
-
});
|
|
1813
|
-
};
|
|
1814
|
-
const result = yield getResultOnRender();
|
|
1815
|
-
return result;
|
|
1816
|
-
});
|
|
1451
|
+
const result = this.nativeElement.hasSelectedRows();
|
|
1452
|
+
return result;
|
|
1817
1453
|
}
|
|
1818
1454
|
/** Hides the Details of a Row, when row details are enabled.
|
|
1819
1455
|
* @param {string | number} rowId. row bound id
|