smart-webcomponents 18.0.0 → 18.0.1
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/package.json +1 -1
- package/source/angular/accordion/index.ts +1 -0
- package/source/angular/accordion/public_api.ts +5 -0
- package/source/angular/accordion/smart.accordion.module.ts +13 -0
- package/source/angular/accordion/smart.accordion.ts +370 -0
- package/source/angular/accordion/smart.accordionitem.ts +142 -0
- package/source/angular/accordion/smart.element.ts +104 -0
- package/source/angular/array/index.ts +1 -0
- package/source/angular/array/public_api.ts +3 -0
- package/source/angular/array/smart.array.module.ts +12 -0
- package/source/angular/array/smart.array.ts +817 -0
- package/source/angular/array/smart.element.ts +104 -0
- package/source/angular/barcode/index.ts +1 -0
- package/source/angular/barcode/public_api.ts +3 -0
- package/source/angular/barcode/smart.barcode.module.ts +12 -0
- package/source/angular/barcode/smart.barcode.ts +306 -0
- package/source/angular/barcode/smart.element.ts +104 -0
- package/source/angular/bootstrap/bootstrap.button.ts +160 -0
- package/source/angular/bootstrap/bootstrap.checkbox.ts +165 -0
- package/source/angular/bootstrap/bootstrap.circular.ts +151 -0
- package/source/angular/bootstrap/bootstrap.dropdown.ts +253 -0
- package/source/angular/bootstrap/bootstrap.fileinput.ts +133 -0
- package/source/angular/bootstrap/bootstrap.input.ts +160 -0
- package/source/angular/bootstrap/bootstrap.inputgroup.ts +178 -0
- package/source/angular/bootstrap/bootstrap.modal.ts +204 -0
- package/source/angular/bootstrap/bootstrap.progressbar.ts +151 -0
- package/source/angular/bootstrap/bootstrap.radiobutton.ts +156 -0
- package/source/angular/bootstrap/bootstrap.range.ts +133 -0
- package/source/angular/bootstrap/bootstrap.splitbutton.ts +253 -0
- package/source/angular/bootstrap/bootstrap.switchbutton.ts +165 -0
- package/source/angular/bootstrap/bootstrap.tabs.ts +175 -0
- package/source/angular/bootstrap/bootstrap.textarea.ts +160 -0
- package/source/angular/bootstrap/bootstrap.togglebutton.ts +156 -0
- package/source/angular/bootstrap/index.ts +1 -0
- package/source/angular/bootstrap/public_api.ts +17 -0
- package/source/angular/bootstrap/smart.element.ts +104 -0
- package/source/angular/breadcrumb/index.ts +1 -0
- package/source/angular/breadcrumb/public_api.ts +3 -0
- package/source/angular/breadcrumb/smart.breadcrumb.module.ts +12 -0
- package/source/angular/breadcrumb/smart.breadcrumb.ts +306 -0
- package/source/angular/breadcrumb/smart.element.ts +104 -0
- package/source/angular/button/index.ts +1 -0
- package/source/angular/button/public_api.ts +9 -0
- package/source/angular/button/smart.button.module.ts +15 -0
- package/source/angular/button/smart.button.ts +230 -0
- package/source/angular/button/smart.element.ts +104 -0
- package/source/angular/button/smart.powerbutton.ts +283 -0
- package/source/angular/button/smart.repeatbutton.ts +214 -0
- package/source/angular/button/smart.togglebutton.ts +235 -0
- package/source/angular/buttongroup/index.ts +1 -0
- package/source/angular/buttongroup/public_api.ts +3 -0
- package/source/angular/buttongroup/smart.buttongroup.module.ts +12 -0
- package/source/angular/buttongroup/smart.buttongroup.ts +229 -0
- package/source/angular/buttongroup/smart.element.ts +104 -0
- package/source/angular/calendar/index.ts +1 -0
- package/source/angular/calendar/public_api.ts +3 -0
- package/source/angular/calendar/smart.calendar.module.ts +12 -0
- package/source/angular/calendar/smart.calendar.ts +787 -0
- package/source/angular/calendar/smart.element.ts +104 -0
- package/source/angular/card/index.ts +1 -0
- package/source/angular/card/public_api.ts +3 -0
- package/source/angular/card/smart.card.module.ts +12 -0
- package/source/angular/card/smart.card.ts +220 -0
- package/source/angular/card/smart.element.ts +104 -0
- package/source/angular/cardview/index.ts +1 -0
- package/source/angular/cardview/public_api.ts +3 -0
- package/source/angular/cardview/smart.cardview.module.ts +12 -0
- package/source/angular/cardview/smart.cardview.ts +573 -0
- package/source/angular/cardview/smart.element.ts +104 -0
- package/source/angular/carousel/index.ts +1 -0
- package/source/angular/carousel/public_api.ts +3 -0
- package/source/angular/carousel/smart.carousel.module.ts +12 -0
- package/source/angular/carousel/smart.carousel.ts +414 -0
- package/source/angular/carousel/smart.element.ts +104 -0
- package/source/angular/chart/index.ts +1 -0
- package/source/angular/chart/public_api.ts +3 -0
- package/source/angular/chart/smart.chart.module.ts +12 -0
- package/source/angular/chart/smart.chart.ts +930 -0
- package/source/angular/chart/smart.element.ts +104 -0
- package/source/angular/checkbox/index.ts +1 -0
- package/source/angular/checkbox/public_api.ts +3 -0
- package/source/angular/checkbox/smart.checkbox.module.ts +12 -0
- package/source/angular/checkbox/smart.checkbox.ts +341 -0
- package/source/angular/checkbox/smart.element.ts +104 -0
- package/source/angular/checkinput/index.ts +1 -0
- package/source/angular/checkinput/public_api.ts +3 -0
- package/source/angular/checkinput/smart.checkinput.module.ts +12 -0
- package/source/angular/checkinput/smart.checkinput.ts +497 -0
- package/source/angular/checkinput/smart.element.ts +104 -0
- package/source/angular/chip/index.ts +1 -0
- package/source/angular/chip/public_api.ts +3 -0
- package/source/angular/chip/smart.chip.module.ts +12 -0
- package/source/angular/chip/smart.chip.ts +221 -0
- package/source/angular/chip/smart.element.ts +104 -0
- package/source/angular/colorinput/index.ts +1 -0
- package/source/angular/colorinput/public_api.ts +3 -0
- package/source/angular/colorinput/smart.colorinput.module.ts +12 -0
- package/source/angular/colorinput/smart.colorinput.ts +456 -0
- package/source/angular/colorinput/smart.element.ts +104 -0
- package/source/angular/colorpanel/index.ts +1 -0
- package/source/angular/colorpanel/public_api.ts +3 -0
- package/source/angular/colorpanel/smart.colorpanel.module.ts +12 -0
- package/source/angular/colorpanel/smart.colorpanel.ts +501 -0
- package/source/angular/colorpanel/smart.element.ts +104 -0
- package/source/angular/colorpicker/index.ts +1 -0
- package/source/angular/colorpicker/public_api.ts +3 -0
- package/source/angular/colorpicker/smart.colorpicker.module.ts +12 -0
- package/source/angular/colorpicker/smart.colorpicker.ts +756 -0
- package/source/angular/colorpicker/smart.element.ts +104 -0
- package/source/angular/columnpanel/index.ts +1 -0
- package/source/angular/columnpanel/public_api.ts +3 -0
- package/source/angular/columnpanel/smart.columnpanel.module.ts +12 -0
- package/source/angular/columnpanel/smart.columnpanel.ts +183 -0
- package/source/angular/columnpanel/smart.element.ts +104 -0
- package/source/angular/combobox/index.ts +1 -0
- package/source/angular/combobox/public_api.ts +7 -0
- package/source/angular/combobox/smart.combobox.module.ts +14 -0
- package/source/angular/combobox/smart.combobox.ts +1154 -0
- package/source/angular/combobox/smart.element.ts +104 -0
- package/source/angular/combobox/smart.listitem.ts +162 -0
- package/source/angular/combobox/smart.listitemsgroup.ts +72 -0
- package/source/angular/countryinput/index.ts +1 -0
- package/source/angular/countryinput/public_api.ts +3 -0
- package/source/angular/countryinput/smart.countryinput.module.ts +12 -0
- package/source/angular/countryinput/smart.countryinput.ts +391 -0
- package/source/angular/countryinput/smart.element.ts +104 -0
- package/source/angular/customizationdialog/index.ts +1 -0
- package/source/angular/customizationdialog/public_api.ts +3 -0
- package/source/angular/customizationdialog/smart.customizationdialog.module.ts +12 -0
- package/source/angular/customizationdialog/smart.customizationdialog.ts +311 -0
- package/source/angular/customizationdialog/smart.element.ts +104 -0
- package/source/angular/dateinput/index.ts +1 -0
- package/source/angular/dateinput/public_api.ts +3 -0
- package/source/angular/dateinput/smart.dateinput.module.ts +12 -0
- package/source/angular/dateinput/smart.dateinput.ts +465 -0
- package/source/angular/dateinput/smart.element.ts +104 -0
- package/source/angular/daterangeinput/index.ts +1 -0
- package/source/angular/daterangeinput/public_api.ts +3 -0
- package/source/angular/daterangeinput/smart.daterangeinput.module.ts +12 -0
- package/source/angular/daterangeinput/smart.daterangeinput.ts +456 -0
- package/source/angular/daterangeinput/smart.element.ts +104 -0
- package/source/angular/datetimepicker/index.ts +1 -0
- package/source/angular/datetimepicker/public_api.ts +3 -0
- package/source/angular/datetimepicker/smart.datetimepicker.module.ts +12 -0
- package/source/angular/datetimepicker/smart.datetimepicker.ts +835 -0
- package/source/angular/datetimepicker/smart.element.ts +104 -0
- package/source/angular/dockinglayout/index.ts +1 -0
- package/source/angular/dockinglayout/public_api.ts +3 -0
- package/source/angular/dockinglayout/smart.dockinglayout.module.ts +12 -0
- package/source/angular/dockinglayout/smart.dockinglayout.ts +866 -0
- package/source/angular/dockinglayout/smart.element.ts +104 -0
- package/source/angular/dropdownbutton/index.ts +1 -0
- package/source/angular/dropdownbutton/public_api.ts +3 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.module.ts +12 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.ts +542 -0
- package/source/angular/dropdownbutton/smart.element.ts +104 -0
- package/source/angular/dropdownlist/index.ts +1 -0
- package/source/angular/dropdownlist/public_api.ts +7 -0
- package/source/angular/dropdownlist/smart.dropdownlist.module.ts +14 -0
- package/source/angular/dropdownlist/smart.dropdownlist.ts +1111 -0
- package/source/angular/dropdownlist/smart.element.ts +104 -0
- package/source/angular/dropdownlist/smart.listitem.ts +162 -0
- package/source/angular/dropdownlist/smart.listitemsgroup.ts +72 -0
- package/source/angular/editor/index.ts +1 -0
- package/source/angular/editor/public_api.ts +3 -0
- package/source/angular/editor/smart.editor.module.ts +12 -0
- package/source/angular/editor/smart.editor.ts +1353 -0
- package/source/angular/editor/smart.element.ts +104 -0
- package/source/angular/element/index.ts +1 -0
- package/source/angular/element/public_api.ts +3 -0
- package/source/angular/element/smart.element.module.ts +10 -0
- package/source/angular/element/smart.element.ts +104 -0
- package/source/angular/fileupload/index.ts +1 -0
- package/source/angular/fileupload/public_api.ts +3 -0
- package/source/angular/fileupload/smart.element.ts +104 -0
- package/source/angular/fileupload/smart.fileupload.module.ts +12 -0
- package/source/angular/fileupload/smart.fileupload.ts +517 -0
- package/source/angular/filterbuilder/index.ts +1 -0
- package/source/angular/filterbuilder/public_api.ts +3 -0
- package/source/angular/filterbuilder/smart.element.ts +104 -0
- package/source/angular/filterbuilder/smart.filterbuilder.module.ts +12 -0
- package/source/angular/filterbuilder/smart.filterbuilder.ts +506 -0
- package/source/angular/filterpanel/index.ts +1 -0
- package/source/angular/filterpanel/public_api.ts +3 -0
- package/source/angular/filterpanel/smart.element.ts +104 -0
- package/source/angular/filterpanel/smart.filterpanel.module.ts +12 -0
- package/source/angular/filterpanel/smart.filterpanel.ts +334 -0
- package/source/angular/form/index.ts +1 -0
- package/source/angular/form/public_api.ts +7 -0
- package/source/angular/form/smart.element.ts +104 -0
- package/source/angular/form/smart.form.module.ts +14 -0
- package/source/angular/form/smart.form.ts +288 -0
- package/source/angular/form/smart.formcontrol.ts +336 -0
- package/source/angular/form/smart.formgroup.ts +238 -0
- package/source/angular/ganttchart/index.ts +1 -0
- package/source/angular/ganttchart/public_api.ts +3 -0
- package/source/angular/ganttchart/smart.element.ts +104 -0
- package/source/angular/ganttchart/smart.ganttchart.module.ts +12 -0
- package/source/angular/ganttchart/smart.ganttchart.ts +2214 -0
- package/source/angular/gauge/index.ts +1 -0
- package/source/angular/gauge/public_api.ts +3 -0
- package/source/angular/gauge/smart.element.ts +104 -0
- package/source/angular/gauge/smart.gauge.module.ts +12 -0
- package/source/angular/gauge/smart.gauge.ts +650 -0
- package/source/angular/grid/index.ts +1 -0
- package/source/angular/grid/public_api.ts +3 -0
- package/source/angular/grid/smart.element.ts +104 -0
- package/source/angular/grid/smart.grid.module.ts +12 -0
- package/source/angular/grid/smart.grid.ts +3154 -0
- package/source/angular/grouppanel/index.ts +1 -0
- package/source/angular/grouppanel/public_api.ts +3 -0
- package/source/angular/grouppanel/smart.element.ts +104 -0
- package/source/angular/grouppanel/smart.grouppanel.module.ts +12 -0
- package/source/angular/grouppanel/smart.grouppanel.ts +220 -0
- package/source/angular/index.d.ts +33688 -0
- package/source/angular/input/index.ts +1 -0
- package/source/angular/input/public_api.ts +3 -0
- package/source/angular/input/smart.element.ts +104 -0
- package/source/angular/input/smart.input.module.ts +12 -0
- package/source/angular/input/smart.input.ts +590 -0
- package/source/angular/kanban/index.ts +1 -0
- package/source/angular/kanban/public_api.ts +3 -0
- package/source/angular/kanban/smart.element.ts +104 -0
- package/source/angular/kanban/smart.kanban.module.ts +12 -0
- package/source/angular/kanban/smart.kanban.ts +1700 -0
- package/source/angular/layout/index.ts +1 -0
- package/source/angular/layout/public_api.ts +11 -0
- package/source/angular/layout/smart.element.ts +104 -0
- package/source/angular/layout/smart.layout.module.ts +16 -0
- package/source/angular/layout/smart.layout.ts +363 -0
- package/source/angular/layout/smart.layoutgroup.ts +140 -0
- package/source/angular/layout/smart.layoutitem.ts +129 -0
- package/source/angular/layout/smart.tablayoutgroup.ts +147 -0
- package/source/angular/layout/smart.tablayoutitem.ts +138 -0
- package/source/angular/led/index.ts +1 -0
- package/source/angular/led/public_api.ts +3 -0
- package/source/angular/led/smart.element.ts +104 -0
- package/source/angular/led/smart.led.module.ts +12 -0
- package/source/angular/led/smart.led.ts +280 -0
- package/source/angular/listbox/index.ts +1 -0
- package/source/angular/listbox/public_api.ts +7 -0
- package/source/angular/listbox/smart.element.ts +104 -0
- package/source/angular/listbox/smart.listbox.module.ts +14 -0
- package/source/angular/listbox/smart.listbox.ts +1036 -0
- package/source/angular/listbox/smart.listitem.ts +162 -0
- package/source/angular/listbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/listmenu/index.ts +1 -0
- package/source/angular/listmenu/public_api.ts +7 -0
- package/source/angular/listmenu/smart.element.ts +104 -0
- package/source/angular/listmenu/smart.listmenu.module.ts +14 -0
- package/source/angular/listmenu/smart.listmenu.ts +597 -0
- package/source/angular/listmenu/smart.menuitem.ts +126 -0
- package/source/angular/listmenu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/map/index.ts +1 -0
- package/source/angular/map/public_api.ts +3 -0
- package/source/angular/map/smart.element.ts +104 -0
- package/source/angular/map/smart.map.module.ts +12 -0
- package/source/angular/map/smart.map.ts +128 -0
- package/source/angular/maskedtextbox/index.ts +1 -0
- package/source/angular/maskedtextbox/public_api.ts +3 -0
- package/source/angular/maskedtextbox/smart.element.ts +104 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.module.ts +12 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.ts +539 -0
- package/source/angular/menu/index.ts +1 -0
- package/source/angular/menu/public_api.ts +7 -0
- package/source/angular/menu/smart.element.ts +104 -0
- package/source/angular/menu/smart.menu.module.ts +14 -0
- package/source/angular/menu/smart.menu.ts +695 -0
- package/source/angular/menu/smart.menuitem.ts +126 -0
- package/source/angular/menu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/multicolumnfilterpanel/index.ts +1 -0
- package/source/angular/multicolumnfilterpanel/public_api.ts +3 -0
- package/source/angular/multicolumnfilterpanel/smart.element.ts +104 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.module.ts +12 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.ts +256 -0
- package/source/angular/multicomboinput/index.ts +1 -0
- package/source/angular/multicomboinput/public_api.ts +3 -0
- package/source/angular/multicomboinput/smart.element.ts +104 -0
- package/source/angular/multicomboinput/smart.multicomboinput.module.ts +12 -0
- package/source/angular/multicomboinput/smart.multicomboinput.ts +542 -0
- package/source/angular/multiinput/index.ts +1 -0
- package/source/angular/multiinput/public_api.ts +3 -0
- package/source/angular/multiinput/smart.element.ts +104 -0
- package/source/angular/multiinput/smart.multiinput.module.ts +12 -0
- package/source/angular/multiinput/smart.multiinput.ts +497 -0
- package/source/angular/multilinetextbox/index.ts +1 -0
- package/source/angular/multilinetextbox/public_api.ts +7 -0
- package/source/angular/multilinetextbox/smart.element.ts +104 -0
- package/source/angular/multilinetextbox/smart.listitem.ts +162 -0
- package/source/angular/multilinetextbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.module.ts +14 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.ts +561 -0
- package/source/angular/multisplitbutton/index.ts +1 -0
- package/source/angular/multisplitbutton/public_api.ts +7 -0
- package/source/angular/multisplitbutton/smart.element.ts +104 -0
- package/source/angular/multisplitbutton/smart.listitem.ts +162 -0
- package/source/angular/multisplitbutton/smart.listitemsgroup.ts +72 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.module.ts +14 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.ts +620 -0
- package/source/angular/numberinput/index.ts +1 -0
- package/source/angular/numberinput/public_api.ts +3 -0
- package/source/angular/numberinput/smart.element.ts +104 -0
- package/source/angular/numberinput/smart.numberinput.module.ts +12 -0
- package/source/angular/numberinput/smart.numberinput.ts +398 -0
- package/source/angular/numerictextbox/index.ts +1 -0
- package/source/angular/numerictextbox/public_api.ts +3 -0
- package/source/angular/numerictextbox/smart.element.ts +104 -0
- package/source/angular/numerictextbox/smart.numerictextbox.module.ts +12 -0
- package/source/angular/numerictextbox/smart.numerictextbox.ts +648 -0
- package/source/angular/pager/index.ts +1 -0
- package/source/angular/pager/public_api.ts +3 -0
- package/source/angular/pager/smart.element.ts +104 -0
- package/source/angular/pager/smart.pager.module.ts +12 -0
- package/source/angular/pager/smart.pager.ts +386 -0
- package/source/angular/passwordinput/index.ts +1 -0
- package/source/angular/passwordinput/public_api.ts +3 -0
- package/source/angular/passwordinput/smart.element.ts +104 -0
- package/source/angular/passwordinput/smart.passwordinput.module.ts +12 -0
- package/source/angular/passwordinput/smart.passwordinput.ts +218 -0
- package/source/angular/passwordtextbox/index.ts +1 -0
- package/source/angular/passwordtextbox/public_api.ts +3 -0
- package/source/angular/passwordtextbox/smart.element.ts +104 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.module.ts +12 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.ts +463 -0
- package/source/angular/path/index.ts +1 -0
- package/source/angular/path/public_api.ts +3 -0
- package/source/angular/path/smart.element.ts +104 -0
- package/source/angular/path/smart.path.module.ts +12 -0
- package/source/angular/path/smart.path.ts +491 -0
- package/source/angular/phoneinput/index.ts +1 -0
- package/source/angular/phoneinput/public_api.ts +3 -0
- package/source/angular/phoneinput/smart.element.ts +104 -0
- package/source/angular/phoneinput/smart.phoneinput.module.ts +12 -0
- package/source/angular/phoneinput/smart.phoneinput.ts +493 -0
- package/source/angular/pivottable/index.ts +1 -0
- package/source/angular/pivottable/public_api.ts +3 -0
- package/source/angular/pivottable/smart.element.ts +104 -0
- package/source/angular/pivottable/smart.pivottable.module.ts +12 -0
- package/source/angular/pivottable/smart.pivottable.ts +840 -0
- package/source/angular/progressbar/index.ts +1 -0
- package/source/angular/progressbar/public_api.ts +5 -0
- package/source/angular/progressbar/smart.circularprogressbar.ts +223 -0
- package/source/angular/progressbar/smart.element.ts +104 -0
- package/source/angular/progressbar/smart.progressbar.module.ts +13 -0
- package/source/angular/progressbar/smart.progressbar.ts +235 -0
- package/source/angular/qrcode/index.ts +1 -0
- package/source/angular/qrcode/public_api.ts +3 -0
- package/source/angular/qrcode/smart.element.ts +104 -0
- package/source/angular/qrcode/smart.qrcode.module.ts +12 -0
- package/source/angular/qrcode/smart.qrcode.ts +333 -0
- package/source/angular/querybuilder/index.ts +1 -0
- package/source/angular/querybuilder/public_api.ts +3 -0
- package/source/angular/querybuilder/smart.element.ts +104 -0
- package/source/angular/querybuilder/smart.querybuilder.module.ts +12 -0
- package/source/angular/querybuilder/smart.querybuilder.ts +460 -0
- package/source/angular/radiobutton/index.ts +1 -0
- package/source/angular/radiobutton/public_api.ts +3 -0
- package/source/angular/radiobutton/smart.element.ts +104 -0
- package/source/angular/radiobutton/smart.radiobutton.module.ts +12 -0
- package/source/angular/radiobutton/smart.radiobutton.ts +350 -0
- package/source/angular/rating/index.ts +1 -0
- package/source/angular/rating/public_api.ts +3 -0
- package/source/angular/rating/smart.element.ts +104 -0
- package/source/angular/rating/smart.rating.module.ts +12 -0
- package/source/angular/rating/smart.rating.ts +309 -0
- package/source/angular/ribbon/index.ts +1 -0
- package/source/angular/ribbon/public_api.ts +9 -0
- package/source/angular/ribbon/smart.element.ts +104 -0
- package/source/angular/ribbon/smart.ribbon.module.ts +15 -0
- package/source/angular/ribbon/smart.ribbon.ts +427 -0
- package/source/angular/ribbon/smart.ribbongroup.ts +126 -0
- package/source/angular/ribbon/smart.ribbonitem.ts +180 -0
- package/source/angular/ribbon/smart.ribbontab.ts +99 -0
- package/source/angular/scheduler/index.ts +1 -0
- package/source/angular/scheduler/public_api.ts +3 -0
- package/source/angular/scheduler/smart.element.ts +104 -0
- package/source/angular/scheduler/smart.scheduler.module.ts +12 -0
- package/source/angular/scheduler/smart.scheduler.ts +2337 -0
- package/source/angular/scrollbar/index.ts +1 -0
- package/source/angular/scrollbar/public_api.ts +3 -0
- package/source/angular/scrollbar/smart.element.ts +104 -0
- package/source/angular/scrollbar/smart.scrollbar.module.ts +12 -0
- package/source/angular/scrollbar/smart.scrollbar.ts +260 -0
- package/source/angular/slider/index.ts +1 -0
- package/source/angular/slider/public_api.ts +3 -0
- package/source/angular/slider/smart.element.ts +104 -0
- package/source/angular/slider/smart.slider.module.ts +12 -0
- package/source/angular/slider/smart.slider.ts +632 -0
- package/source/angular/sortable/index.ts +1 -0
- package/source/angular/sortable/public_api.ts +3 -0
- package/source/angular/sortable/smart.element.ts +104 -0
- package/source/angular/sortable/smart.sortable.module.ts +12 -0
- package/source/angular/sortable/smart.sortable.ts +217 -0
- package/source/angular/sortpanel/index.ts +1 -0
- package/source/angular/sortpanel/public_api.ts +3 -0
- package/source/angular/sortpanel/smart.element.ts +104 -0
- package/source/angular/sortpanel/smart.sortpanel.module.ts +12 -0
- package/source/angular/sortpanel/smart.sortpanel.ts +180 -0
- package/source/angular/splitter/index.ts +1 -0
- package/source/angular/splitter/public_api.ts +7 -0
- package/source/angular/splitter/smart.element.ts +104 -0
- package/source/angular/splitter/smart.splitter.module.ts +14 -0
- package/source/angular/splitter/smart.splitter.ts +530 -0
- package/source/angular/splitter/smart.splitterbar.ts +121 -0
- package/source/angular/splitter/smart.splitteritem.ts +192 -0
- package/source/angular/switchbutton/index.ts +1 -0
- package/source/angular/switchbutton/public_api.ts +3 -0
- package/source/angular/switchbutton/smart.element.ts +104 -0
- package/source/angular/switchbutton/smart.switchbutton.module.ts +12 -0
- package/source/angular/switchbutton/smart.switchbutton.ts +386 -0
- package/source/angular/table/index.ts +1 -0
- package/source/angular/table/public_api.ts +3 -0
- package/source/angular/table/smart.element.ts +104 -0
- package/source/angular/table/smart.table.module.ts +12 -0
- package/source/angular/table/smart.table.ts +1507 -0
- package/source/angular/tabs/index.ts +1 -0
- package/source/angular/tabs/public_api.ts +7 -0
- package/source/angular/tabs/smart.element.ts +104 -0
- package/source/angular/tabs/smart.tabitem.ts +126 -0
- package/source/angular/tabs/smart.tabitemsgroup.ts +81 -0
- package/source/angular/tabs/smart.tabs.module.ts +14 -0
- package/source/angular/tabs/smart.tabs.ts +622 -0
- package/source/angular/tank/index.ts +1 -0
- package/source/angular/tank/public_api.ts +3 -0
- package/source/angular/tank/smart.element.ts +104 -0
- package/source/angular/tank/smart.tank.module.ts +12 -0
- package/source/angular/tank/smart.tank.ts +593 -0
- package/source/angular/textarea/index.ts +1 -0
- package/source/angular/textarea/public_api.ts +3 -0
- package/source/angular/textarea/smart.element.ts +104 -0
- package/source/angular/textarea/smart.textarea.module.ts +12 -0
- package/source/angular/textarea/smart.textarea.ts +519 -0
- package/source/angular/textbox/index.ts +1 -0
- package/source/angular/textbox/public_api.ts +7 -0
- package/source/angular/textbox/smart.element.ts +104 -0
- package/source/angular/textbox/smart.listitem.ts +162 -0
- package/source/angular/textbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/textbox/smart.textbox.module.ts +14 -0
- package/source/angular/textbox/smart.textbox.ts +708 -0
- package/source/angular/threedchart/index.ts +1 -0
- package/source/angular/threedchart/public_api.ts +3 -0
- package/source/angular/threedchart/smart.element.ts +104 -0
- package/source/angular/threedchart/smart.threedchart.module.ts +12 -0
- package/source/angular/threedchart/smart.threedchart.ts +1052 -0
- package/source/angular/timeinput/index.ts +1 -0
- package/source/angular/timeinput/public_api.ts +3 -0
- package/source/angular/timeinput/smart.element.ts +104 -0
- package/source/angular/timeinput/smart.timeinput.module.ts +12 -0
- package/source/angular/timeinput/smart.timeinput.ts +427 -0
- package/source/angular/timepicker/index.ts +1 -0
- package/source/angular/timepicker/public_api.ts +3 -0
- package/source/angular/timepicker/smart.element.ts +104 -0
- package/source/angular/timepicker/smart.timepicker.module.ts +12 -0
- package/source/angular/timepicker/smart.timepicker.ts +370 -0
- package/source/angular/toast/index.ts +1 -0
- package/source/angular/toast/public_api.ts +3 -0
- package/source/angular/toast/smart.element.ts +104 -0
- package/source/angular/toast/smart.toast.module.ts +12 -0
- package/source/angular/toast/smart.toast.ts +405 -0
- package/source/angular/tooltip/index.ts +1 -0
- package/source/angular/tooltip/public_api.ts +3 -0
- package/source/angular/tooltip/smart.element.ts +104 -0
- package/source/angular/tooltip/smart.tooltip.module.ts +12 -0
- package/source/angular/tooltip/smart.tooltip.ts +339 -0
- package/source/angular/tree/index.ts +1 -0
- package/source/angular/tree/public_api.ts +7 -0
- package/source/angular/tree/smart.element.ts +104 -0
- package/source/angular/tree/smart.tree.module.ts +14 -0
- package/source/angular/tree/smart.tree.ts +1042 -0
- package/source/angular/tree/smart.treeitem.ts +135 -0
- package/source/angular/tree/smart.treeitemsgroup.ts +135 -0
- package/source/angular/validator/index.ts +1 -0
- package/source/angular/validator/public_api.ts +3 -0
- package/source/angular/validator/smart.element.ts +104 -0
- package/source/angular/validator/smart.validator.module.ts +12 -0
- package/source/angular/validator/smart.validator.ts +124 -0
- package/source/angular/window/index.ts +1 -0
- package/source/angular/window/public_api.ts +3 -0
- package/source/angular/window/smart.element.ts +104 -0
- package/source/angular/window/smart.window.module.ts +12 -0
- package/source/angular/window/smart.window.ts +1180 -0
- package/source/react/accordion/accordion.jsx +508 -0
- package/source/react/accordion/accordion.tsx +516 -0
- package/source/react/accordion/accordionitem.jsx +257 -0
- package/source/react/accordion/accordionitem.tsx +279 -0
- package/source/react/alertwindow/alertwindow.jsx +1437 -0
- package/source/react/alertwindow/alertwindow.tsx +1399 -0
- package/source/react/array/array.jsx +953 -0
- package/source/react/array/array.tsx +959 -0
- package/source/react/barcode/barcode.jsx +442 -0
- package/source/react/barcode/barcode.tsx +468 -0
- package/source/react/breadcrumb/breadcrumb.jsx +445 -0
- package/source/react/breadcrumb/breadcrumb.tsx +455 -0
- package/source/react/button/button.jsx +377 -0
- package/source/react/button/button.tsx +409 -0
- package/source/react/button/powerbutton.jsx +347 -0
- package/source/react/button/powerbutton.tsx +373 -0
- package/source/react/button/repeatbutton.jsx +371 -0
- package/source/react/button/repeatbutton.tsx +397 -0
- package/source/react/button/togglebutton.jsx +383 -0
- package/source/react/button/togglebutton.tsx +401 -0
- package/source/react/buttongroup/buttongroup.jsx +386 -0
- package/source/react/buttongroup/buttongroup.tsx +412 -0
- package/source/react/calendar/calendar.jsx +914 -0
- package/source/react/calendar/calendar.tsx +916 -0
- package/source/react/card/card.jsx +359 -0
- package/source/react/card/card.tsx +373 -0
- package/source/react/cardview/cardview.jsx +710 -0
- package/source/react/cardview/cardview.tsx +706 -0
- package/source/react/carousel/carousel.jsx +592 -0
- package/source/react/carousel/carousel.tsx +606 -0
- package/source/react/chart/chart.jsx +1060 -0
- package/source/react/chart/chart.tsx +1046 -0
- package/source/react/checkbox/checkbox.jsx +407 -0
- package/source/react/checkbox/checkbox.tsx +425 -0
- package/source/react/checkinput/checkinput.jsx +612 -0
- package/source/react/checkinput/checkinput.tsx +638 -0
- package/source/react/chip/chip.jsx +375 -0
- package/source/react/chip/chip.tsx +401 -0
- package/source/react/colorinput/colorinput.jsx +562 -0
- package/source/react/colorinput/colorinput.tsx +588 -0
- package/source/react/colorpanel/colorpanel.jsx +616 -0
- package/source/react/colorpanel/colorpanel.tsx +630 -0
- package/source/react/colorpicker/colorpicker.jsx +892 -0
- package/source/react/colorpicker/colorpicker.tsx +874 -0
- package/source/react/columnpanel/columnpanel.jsx +322 -0
- package/source/react/columnpanel/columnpanel.tsx +344 -0
- package/source/react/combobox/combobox.jsx +1287 -0
- package/source/react/combobox/combobox.tsx +1277 -0
- package/source/react/combobox/listitem.jsx +325 -0
- package/source/react/combobox/listitem.tsx +355 -0
- package/source/react/combobox/listitemsgroup.jsx +205 -0
- package/source/react/combobox/listitemsgroup.tsx +235 -0
- package/source/react/countryinput/countryinput.jsx +455 -0
- package/source/react/countryinput/countryinput.tsx +473 -0
- package/source/react/customizationdialog/customizationdialog.jsx +471 -0
- package/source/react/customizationdialog/customizationdialog.tsx +485 -0
- package/source/react/dateinput/dateinput.jsx +559 -0
- package/source/react/dateinput/dateinput.tsx +585 -0
- package/source/react/daterangeinput/daterangeinput.jsx +562 -0
- package/source/react/daterangeinput/daterangeinput.tsx +588 -0
- package/source/react/datetimepicker/datetimepicker.jsx +1013 -0
- package/source/react/datetimepicker/datetimepicker.tsx +1023 -0
- package/source/react/dialogwindow/dialogwindow.jsx +1437 -0
- package/source/react/dialogwindow/dialogwindow.tsx +1399 -0
- package/source/react/dockinglayout/dockinglayout.jsx +969 -0
- package/source/react/dockinglayout/dockinglayout.tsx +975 -0
- package/source/react/dropdownbutton/dropdownbutton.jsx +711 -0
- package/source/react/dropdownbutton/dropdownbutton.tsx +709 -0
- package/source/react/dropdownlist/dropdownlist.jsx +1223 -0
- package/source/react/dropdownlist/dropdownlist.tsx +1209 -0
- package/source/react/dropdownlist/listitem.jsx +325 -0
- package/source/react/dropdownlist/listitem.tsx +355 -0
- package/source/react/dropdownlist/listitemsgroup.jsx +205 -0
- package/source/react/dropdownlist/listitemsgroup.tsx +235 -0
- package/source/react/editor/editor.jsx +1465 -0
- package/source/react/editor/editor.tsx +1383 -0
- package/source/react/element/element.jsx +438 -0
- package/source/react/element/element.tsx +460 -0
- package/source/react/fileupload/fileupload.jsx +689 -0
- package/source/react/fileupload/fileupload.tsx +691 -0
- package/source/react/filterbuilder/filterbuilder.jsx +654 -0
- package/source/react/filterbuilder/filterbuilder.tsx +644 -0
- package/source/react/filterpanel/filterpanel.jsx +479 -0
- package/source/react/filterpanel/filterpanel.tsx +497 -0
- package/source/react/form/form.jsx +429 -0
- package/source/react/form/form.tsx +463 -0
- package/source/react/form/formcontrol.jsx +541 -0
- package/source/react/form/formcontrol.tsx +571 -0
- package/source/react/form/formgroup.jsx +380 -0
- package/source/react/form/formgroup.tsx +410 -0
- package/source/react/ganttchart/ganttchart.jsx +2344 -0
- package/source/react/ganttchart/ganttchart.tsx +2262 -0
- package/source/react/gauge/gauge.jsx +801 -0
- package/source/react/gauge/gauge.tsx +827 -0
- package/source/react/grid/grid.jsx +3021 -0
- package/source/react/grid/grid.tsx +2897 -0
- package/source/react/grouppanel/grouppanel.jsx +359 -0
- package/source/react/grouppanel/grouppanel.tsx +373 -0
- package/source/react/input/input.jsx +672 -0
- package/source/react/input/input.tsx +682 -0
- package/source/react/kanban/kanban.jsx +1894 -0
- package/source/react/kanban/kanban.tsx +1810 -0
- package/source/react/layout/layout.jsx +495 -0
- package/source/react/layout/layout.tsx +501 -0
- package/source/react/layout/layoutgroup.jsx +279 -0
- package/source/react/layout/layoutgroup.tsx +309 -0
- package/source/react/layout/layoutitem.jsx +265 -0
- package/source/react/layout/layoutitem.tsx +295 -0
- package/source/react/layout/tablayoutgroup.jsx +289 -0
- package/source/react/layout/tablayoutgroup.tsx +319 -0
- package/source/react/layout/tablayoutitem.jsx +277 -0
- package/source/react/layout/tablayoutitem.tsx +307 -0
- package/source/react/led/led.jsx +458 -0
- package/source/react/led/led.tsx +484 -0
- package/source/react/listbox/listbox.jsx +1119 -0
- package/source/react/listbox/listbox.tsx +1109 -0
- package/source/react/listbox/listitem.jsx +325 -0
- package/source/react/listbox/listitem.tsx +355 -0
- package/source/react/listbox/listitemsgroup.jsx +205 -0
- package/source/react/listbox/listitemsgroup.tsx +235 -0
- package/source/react/listmenu/listmenu.jsx +786 -0
- package/source/react/listmenu/listmenu.tsx +796 -0
- package/source/react/listmenu/menuitem.jsx +277 -0
- package/source/react/listmenu/menuitem.tsx +307 -0
- package/source/react/listmenu/menuitemsgroup.jsx +313 -0
- package/source/react/listmenu/menuitemsgroup.tsx +343 -0
- package/source/react/map/map.jsx +279 -0
- package/source/react/map/map.tsx +309 -0
- package/source/react/maskedtextbox/maskedtextbox.jsx +663 -0
- package/source/react/maskedtextbox/maskedtextbox.tsx +681 -0
- package/source/react/menu/menu.jsx +863 -0
- package/source/react/menu/menu.tsx +857 -0
- package/source/react/menu/menuitem.jsx +277 -0
- package/source/react/menu/menuitem.tsx +307 -0
- package/source/react/menu/menuitemsgroup.jsx +313 -0
- package/source/react/menu/menuitemsgroup.tsx +343 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.jsx +407 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.tsx +421 -0
- package/source/react/multicomboinput/multicomboinput.jsx +672 -0
- package/source/react/multicomboinput/multicomboinput.tsx +698 -0
- package/source/react/multiinput/multiinput.jsx +612 -0
- package/source/react/multiinput/multiinput.tsx +638 -0
- package/source/react/multilinetextbox/listitem.jsx +325 -0
- package/source/react/multilinetextbox/listitem.tsx +355 -0
- package/source/react/multilinetextbox/listitemsgroup.jsx +205 -0
- package/source/react/multilinetextbox/listitemsgroup.tsx +235 -0
- package/source/react/multilinetextbox/multilinetextbox.jsx +684 -0
- package/source/react/multilinetextbox/multilinetextbox.tsx +714 -0
- package/source/react/multilinewindow/multilinewindow.jsx +1437 -0
- package/source/react/multilinewindow/multilinewindow.tsx +1399 -0
- package/source/react/multisplitbutton/listitem.jsx +325 -0
- package/source/react/multisplitbutton/listitem.tsx +355 -0
- package/source/react/multisplitbutton/listitemsgroup.jsx +205 -0
- package/source/react/multisplitbutton/listitemsgroup.tsx +235 -0
- package/source/react/multisplitbutton/multisplitbutton.jsx +797 -0
- package/source/react/multisplitbutton/multisplitbutton.tsx +795 -0
- package/source/react/numberinput/numberinput.jsx +459 -0
- package/source/react/numberinput/numberinput.tsx +485 -0
- package/source/react/numerictextbox/numerictextbox.jsx +767 -0
- package/source/react/numerictextbox/numerictextbox.tsx +769 -0
- package/source/react/pager/pager.jsx +570 -0
- package/source/react/pager/pager.tsx +592 -0
- package/source/react/passwordinput/passwordinput.jsx +363 -0
- package/source/react/passwordinput/passwordinput.tsx +385 -0
- package/source/react/passwordtextbox/passwordtextbox.jsx +569 -0
- package/source/react/passwordtextbox/passwordtextbox.tsx +591 -0
- package/source/react/path/path.jsx +675 -0
- package/source/react/path/path.tsx +673 -0
- package/source/react/phoneinput/phoneinput.jsx +527 -0
- package/source/react/phoneinput/phoneinput.tsx +545 -0
- package/source/react/pivottable/pivottable.jsx +1036 -0
- package/source/react/pivottable/pivottable.tsx +1030 -0
- package/source/react/progressbar/circularprogressbar.jsx +383 -0
- package/source/react/progressbar/circularprogressbar.tsx +409 -0
- package/source/react/progressbar/progressbar.jsx +397 -0
- package/source/react/progressbar/progressbar.tsx +425 -0
- package/source/react/progresswindow/progresswindow.jsx +1437 -0
- package/source/react/progresswindow/progresswindow.tsx +1399 -0
- package/source/react/promptwindow/promptwindow.jsx +1437 -0
- package/source/react/promptwindow/promptwindow.tsx +1399 -0
- package/source/react/qrcode/qrcode.jsx +478 -0
- package/source/react/qrcode/qrcode.tsx +504 -0
- package/source/react/querybuilder/querybuilder.jsx +635 -0
- package/source/react/querybuilder/querybuilder.tsx +637 -0
- package/source/react/radiobutton/radiobutton.jsx +419 -0
- package/source/react/radiobutton/radiobutton.tsx +437 -0
- package/source/react/rating/rating.jsx +361 -0
- package/source/react/rating/rating.tsx +387 -0
- package/source/react/ribbon/ribbon.jsx +535 -0
- package/source/react/ribbon/ribbon.tsx +527 -0
- package/source/react/ribbon/ribbongroup.jsx +277 -0
- package/source/react/ribbon/ribbongroup.tsx +307 -0
- package/source/react/ribbon/ribbonitem.jsx +349 -0
- package/source/react/ribbon/ribbonitem.tsx +379 -0
- package/source/react/ribbon/ribbontab.jsx +241 -0
- package/source/react/ribbon/ribbontab.tsx +271 -0
- package/source/react/scheduler/scheduler.jsx +2510 -0
- package/source/react/scheduler/scheduler.tsx +2398 -0
- package/source/react/scrollbar/scrollbar.jsx +426 -0
- package/source/react/scrollbar/scrollbar.tsx +452 -0
- package/source/react/slider/slider.jsx +777 -0
- package/source/react/slider/slider.tsx +803 -0
- package/source/react/sortable/sortable.jsx +365 -0
- package/source/react/sortable/sortable.tsx +391 -0
- package/source/react/sortpanel/sortpanel.jsx +319 -0
- package/source/react/sortpanel/sortpanel.tsx +341 -0
- package/source/react/splitter/splitter.jsx +659 -0
- package/source/react/splitter/splitter.tsx +677 -0
- package/source/react/splitter/splitterbar.jsx +251 -0
- package/source/react/splitter/splitterbar.tsx +281 -0
- package/source/react/splitter/splitteritem.jsx +334 -0
- package/source/react/splitter/splitteritem.tsx +364 -0
- package/source/react/switchbutton/switchbutton.jsx +467 -0
- package/source/react/switchbutton/switchbutton.tsx +485 -0
- package/source/react/table/table.jsx +1688 -0
- package/source/react/table/table.tsx +1654 -0
- package/source/react/tabs/tabitem.jsx +265 -0
- package/source/react/tabs/tabitem.tsx +295 -0
- package/source/react/tabs/tabitemsgroup.jsx +217 -0
- package/source/react/tabs/tabitemsgroup.tsx +247 -0
- package/source/react/tabs/tabs.jsx +766 -0
- package/source/react/tabs/tabs.tsx +772 -0
- package/source/react/tabswindow/tabswindow.jsx +1437 -0
- package/source/react/tabswindow/tabswindow.tsx +1399 -0
- package/source/react/tank/tank.jsx +726 -0
- package/source/react/tank/tank.tsx +752 -0
- package/source/react/textarea/textarea.jsx +619 -0
- package/source/react/textarea/textarea.tsx +641 -0
- package/source/react/textbox/listitem.jsx +325 -0
- package/source/react/textbox/listitem.tsx +355 -0
- package/source/react/textbox/listitemsgroup.jsx +205 -0
- package/source/react/textbox/listitemsgroup.tsx +235 -0
- package/source/react/textbox/textbox.jsx +888 -0
- package/source/react/textbox/textbox.tsx +914 -0
- package/source/react/threedchart/threedchart.jsx +1182 -0
- package/source/react/threedchart/threedchart.tsx +1168 -0
- package/source/react/timeinput/timeinput.jsx +509 -0
- package/source/react/timeinput/timeinput.tsx +535 -0
- package/source/react/timepicker/timepicker.jsx +452 -0
- package/source/react/timepicker/timepicker.tsx +478 -0
- package/source/react/toast/toast.jsx +556 -0
- package/source/react/toast/toast.tsx +558 -0
- package/source/react/tooltip/tooltip.jsx +499 -0
- package/source/react/tooltip/tooltip.tsx +513 -0
- package/source/react/tree/tree.jsx +1222 -0
- package/source/react/tree/tree.tsx +1208 -0
- package/source/react/tree/treeitem.jsx +289 -0
- package/source/react/tree/treeitem.tsx +319 -0
- package/source/react/tree/treeitemsgroup.jsx +289 -0
- package/source/react/tree/treeitemsgroup.tsx +319 -0
- package/source/react/validator/validator.jsx +248 -0
- package/source/react/validator/validator.tsx +278 -0
- package/source/react/waitwindow/waitwindow.jsx +1437 -0
- package/source/react/waitwindow/waitwindow.tsx +1399 -0
- package/source/react/window/window.jsx +1421 -0
- package/source/react/window/window.tsx +1399 -0
|
@@ -0,0 +1,2897 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridProperties } from "./../../index";
|
|
3
|
+
import { GridAppearanceAutoGenerateRowLabelMode, GridAppearanceAutoGenerateColumnLabelMode, GridResizeMode, GridClipboardAutoFillMode, HorizontalAlignment, VerticalAlignment, Position, GridColumnFilterMenuMode, GridColumnSortOrder, GridConditionalFormattingCondition, GridDataExportPageOrientation, GridDataSourceSettingsSanitizeHTML, GridDataSourceSettingsDataFieldDataType, GridDataSourceSettingsDataSourceType, GridEditingAction, LayoutPosition, GridCommandDisplayMode, GridEditingMode, GridEditingAddNewRowDisplayMode, GridFilteringFilterRowApplyMode, GridFilteringFilterMenuMode, GridGroupingExpandMode, GridGroupingRenderMode, GridHeaderSearchCommand, GridPagerAutoEllipsis, Scrolling, GridSelectionMode, GridSelectionAction, GridSelectionCheckBoxesSelectAllMode, GridSortingMode, GridSortingCommandKey, GridAppearance, GridBehavior, GridColumnHeader, GridClipboard, GridColumn, GridContextMenu, GridContextMenuDataSource, GridCommand, GridColumnMenu, GridColumnMenuDataSource, GridColumnGroup, GridConditionalFormatting, GridCharting, Dialog, GridCheckBoxes, GridDataExport, GridDataSourceSettings, GridDataSourceSettingsDataField, GridEditing, GridEditingCommandKeys, GridCommandKey, GridEditingCommandBar, GridEditingCommandBarDataSource, GridEditingCommandColumn, GridEditingCommandColumnDataSource, GridEditingAddNewRow, GridEditingAddNewColumn, GridFiltering, GridFilteringFilterRow, GridFilteringFilterMenu, GridFilteringFilterBuilder, GridFooter, GridGrouping, GridGroupingGroupBar, GridGroupingSummaryRow, GridGroupHeader, GridHeader, GridLayout, GridPaging, GridPagingSpinner, GridPager, GridPagerPageSizeSelector, GridPagerSummary, GridPagerNavigationButtons, GridPagerNavigationButtonsPrevNextButtons, GridPagerNavigationButtonsFirstLastButtons, GridPagerNavigationButtonsLabels, GridPagerNavigationInput, GridPagerPageIndexSelectors, GridRowDetail, GridRow, GridCell, GridSummaryRow, GridStateSettings, GridSelection, GridSelectionCheckBoxes, GridSorting, GridUploadSettings} from './../../index';
|
|
4
|
+
import { DataAdapter, Chart } from './../../index';
|
|
5
|
+
export { GridProperties } from "./../../index";
|
|
6
|
+
export { GridAppearanceAutoGenerateRowLabelMode, GridAppearanceAutoGenerateColumnLabelMode, GridResizeMode, GridClipboardAutoFillMode, HorizontalAlignment, VerticalAlignment, Position, GridColumnFilterMenuMode, GridColumnSortOrder, GridConditionalFormattingCondition, GridDataExportPageOrientation, GridDataSourceSettingsSanitizeHTML, GridDataSourceSettingsDataFieldDataType, GridDataSourceSettingsDataSourceType, GridEditingAction, LayoutPosition, GridCommandDisplayMode, GridEditingMode, GridEditingAddNewRowDisplayMode, GridFilteringFilterRowApplyMode, GridFilteringFilterMenuMode, GridGroupingExpandMode, GridGroupingRenderMode, GridHeaderSearchCommand, GridPagerAutoEllipsis, Scrolling, GridSelectionMode, GridSelectionAction, GridSelectionCheckBoxesSelectAllMode, GridSortingMode, GridSortingCommandKey, GridAppearance, GridBehavior, GridColumnHeader, GridClipboard, GridColumn, GridContextMenu, GridContextMenuDataSource, GridCommand, GridColumnMenu, GridColumnMenuDataSource, GridColumnGroup, GridConditionalFormatting, GridCharting, Dialog, GridCheckBoxes, GridDataExport, GridDataSourceSettings, GridDataSourceSettingsDataField, GridEditing, GridEditingCommandKeys, GridCommandKey, GridEditingCommandBar, GridEditingCommandBarDataSource, GridEditingCommandColumn, GridEditingCommandColumnDataSource, GridEditingAddNewRow, GridEditingAddNewColumn, GridFiltering, GridFilteringFilterRow, GridFilteringFilterMenu, GridFilteringFilterBuilder, GridFooter, GridGrouping, GridGroupingGroupBar, GridGroupingSummaryRow, GridGroupHeader, GridHeader, GridLayout, GridPaging, GridPagingSpinner, GridPager, GridPagerPageSizeSelector, GridPagerSummary, GridPagerNavigationButtons, GridPagerNavigationButtonsPrevNextButtons, GridPagerNavigationButtonsFirstLastButtons, GridPagerNavigationButtonsLabels, GridPagerNavigationInput, GridPagerPageIndexSelectors, GridRowDetail, GridRow, GridCell, GridSummaryRow, GridStateSettings, GridSelection, GridSelectionCheckBoxes, GridSorting, GridUploadSettings} from './../../index';
|
|
7
|
+
export { DataAdapter, Chart } from './../../index';
|
|
8
|
+
|
|
9
|
+
interface IWindow { Smart: any; }
|
|
10
|
+
declare const window: IWindow;
|
|
11
|
+
let Smart: any;
|
|
12
|
+
if (typeof window !== "undefined") {
|
|
13
|
+
Smart = window.Smart;
|
|
14
|
+
}
|
|
15
|
+
export interface GridProps extends GridProperties {
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
|
|
19
|
+
onBeginEdit?: ((event?: Event) => void) | undefined;
|
|
20
|
+
onBatchChange?: ((event?: Event) => void) | undefined;
|
|
21
|
+
onBatchCancel?: ((event?: Event) => void) | undefined;
|
|
22
|
+
onChange?: ((event?: Event) => void) | undefined;
|
|
23
|
+
onColumnClick?: ((event?: Event) => void) | undefined;
|
|
24
|
+
onColumnDoubleClick?: ((event?: Event) => void) | undefined;
|
|
25
|
+
onColumnResize?: ((event?: Event) => void) | undefined;
|
|
26
|
+
onColumnDragStart?: ((event?: Event) => void) | undefined;
|
|
27
|
+
onColumnChange?: ((event?: Event) => void) | undefined;
|
|
28
|
+
onColumnDragging?: ((event?: Event) => void) | undefined;
|
|
29
|
+
onColumnDragEnd?: ((event?: Event) => void) | undefined;
|
|
30
|
+
onColumnReorder?: ((event?: Event) => void) | undefined;
|
|
31
|
+
onCommentAdd?: ((event?: Event) => void) | undefined;
|
|
32
|
+
onCommentRemove?: ((event?: Event) => void) | undefined;
|
|
33
|
+
onContextMenuItemClick?: ((event?: Event) => void) | undefined;
|
|
34
|
+
onRowDragStart?: ((event?: Event) => void) | undefined;
|
|
35
|
+
onRowDragging?: ((event?: Event) => void) | undefined;
|
|
36
|
+
onRowDragEnd?: ((event?: Event) => void) | undefined;
|
|
37
|
+
onRowReorder?: ((event?: Event) => void) | undefined;
|
|
38
|
+
onRowExpand?: ((event?: Event) => void) | undefined;
|
|
39
|
+
onRowCollapse?: ((event?: Event) => void) | undefined;
|
|
40
|
+
onRowClick?: ((event?: Event) => void) | undefined;
|
|
41
|
+
onRowDoubleClick?: ((event?: Event) => void) | undefined;
|
|
42
|
+
onRowResize?: ((event?: Event) => void) | undefined;
|
|
43
|
+
onRowStarred?: ((event?: Event) => void) | undefined;
|
|
44
|
+
onCellClick?: ((event?: Event) => void) | undefined;
|
|
45
|
+
onCellDoubleClick?: ((event?: Event) => void) | undefined;
|
|
46
|
+
onEndEdit?: ((event?: Event) => void) | undefined;
|
|
47
|
+
onFilter?: ((event?: Event) => void) | undefined;
|
|
48
|
+
onGroup?: ((event?: Event) => void) | undefined;
|
|
49
|
+
onOpenColumnDialog?: ((event?: Event) => void) | undefined;
|
|
50
|
+
onCloseColumnDialog?: ((event?: Event) => void) | undefined;
|
|
51
|
+
onResize?: ((event?: Event) => void) | undefined;
|
|
52
|
+
onRowTap?: ((event?: Event) => void) | undefined;
|
|
53
|
+
onCellTap?: ((event?: Event) => void) | undefined;
|
|
54
|
+
onPage?: ((event?: Event) => void) | undefined;
|
|
55
|
+
onSort?: ((event?: Event) => void) | undefined;
|
|
56
|
+
onScrollBottomReached?: ((event?: Event) => void) | undefined;
|
|
57
|
+
onScrollTopReached?: ((event?: Event) => void) | undefined;
|
|
58
|
+
onCreate?: ((event?: Event) => void) | undefined;
|
|
59
|
+
onReady?: ((event?: Event) => void) | undefined;
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
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.
|
|
64
|
+
*/
|
|
65
|
+
export class Grid extends React.Component<React.HTMLAttributes<Element> & GridProps, any> {
|
|
66
|
+
private _id: string;
|
|
67
|
+
private nativeElement: any;
|
|
68
|
+
private componentRef: any;
|
|
69
|
+
|
|
70
|
+
// Gets the id of the React component.
|
|
71
|
+
get id() {
|
|
72
|
+
if (!this._id) {
|
|
73
|
+
this._id = 'Grid' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return this._id;
|
|
77
|
+
}
|
|
78
|
+
/** An object containing settings related to the grid's appearance.
|
|
79
|
+
* Property type: GridAppearance
|
|
80
|
+
*/
|
|
81
|
+
get appearance(): GridAppearance {
|
|
82
|
+
return this.nativeElement ? this.nativeElement.appearance : undefined;
|
|
83
|
+
}
|
|
84
|
+
set appearance(value: GridAppearance) {
|
|
85
|
+
if (this.nativeElement) {
|
|
86
|
+
this.nativeElement.appearance = value;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** An object containing settings related to the grid's behavior.
|
|
91
|
+
* Property type: GridBehavior
|
|
92
|
+
*/
|
|
93
|
+
get behavior(): GridBehavior {
|
|
94
|
+
return this.nativeElement ? this.nativeElement.behavior : undefined;
|
|
95
|
+
}
|
|
96
|
+
set behavior(value: GridBehavior) {
|
|
97
|
+
if (this.nativeElement) {
|
|
98
|
+
this.nativeElement.behavior = value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Sets or gets the id of the current user. Has to correspond to the id of an item from the users property/array. Depending on the current user, different privileges are enabled. If no current user is set, privileges depend on the element's properties.
|
|
103
|
+
* Property type: string | number
|
|
104
|
+
*/
|
|
105
|
+
get currentUser(): string | number {
|
|
106
|
+
return this.nativeElement ? this.nativeElement.currentUser : undefined;
|
|
107
|
+
}
|
|
108
|
+
set currentUser(value: string | number) {
|
|
109
|
+
if (this.nativeElement) {
|
|
110
|
+
this.nativeElement.currentUser = value;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Describes the column header settings.
|
|
115
|
+
* Property type: GridColumnHeader
|
|
116
|
+
*/
|
|
117
|
+
get columnHeader(): GridColumnHeader {
|
|
118
|
+
return this.nativeElement ? this.nativeElement.columnHeader : undefined;
|
|
119
|
+
}
|
|
120
|
+
set columnHeader(value: GridColumnHeader) {
|
|
121
|
+
if (this.nativeElement) {
|
|
122
|
+
this.nativeElement.columnHeader = value;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** The clipboard property is used to enable/disable clipboard operations with Ctrl+C, Ctrl+X and Ctrl+V keyboard navigations..
|
|
127
|
+
* Property type: GridClipboard
|
|
128
|
+
*/
|
|
129
|
+
get clipboard(): GridClipboard {
|
|
130
|
+
return this.nativeElement ? this.nativeElement.clipboard : undefined;
|
|
131
|
+
}
|
|
132
|
+
set clipboard(value: GridClipboard) {
|
|
133
|
+
if (this.nativeElement) {
|
|
134
|
+
this.nativeElement.clipboard = value;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** The columns property is used to describe all columns displayed in the grid.
|
|
139
|
+
* Property type: {label: string, dataField: string}[] | string[] | number | GridColumn[]
|
|
140
|
+
*/
|
|
141
|
+
get columns(): {label: string, dataField: string}[] | string[] | number | GridColumn[] {
|
|
142
|
+
return this.nativeElement ? this.nativeElement.columns : undefined;
|
|
143
|
+
}
|
|
144
|
+
set columns(value: {label: string, dataField: string}[] | string[] | number | GridColumn[]) {
|
|
145
|
+
if (this.nativeElement) {
|
|
146
|
+
this.nativeElement.columns = value;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** Context Menu is the drop-down menu displayed after right-clicking a Grid row. It allows you to delete row, edit cell or row depending on the edit mode. The 'contextMenuItemCustom' dataSource option allows you to add custom menu item to the context menu. You can replace the context menu by using the 'selector' property and setting it to ID of a Smart.Menu component.
|
|
151
|
+
* Property type: GridContextMenu
|
|
152
|
+
*/
|
|
153
|
+
get contextMenu(): GridContextMenu {
|
|
154
|
+
return this.nativeElement ? this.nativeElement.contextMenu : undefined;
|
|
155
|
+
}
|
|
156
|
+
set contextMenu(value: GridContextMenu) {
|
|
157
|
+
if (this.nativeElement) {
|
|
158
|
+
this.nativeElement.contextMenu = value;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Column Menu is the drop-down menu displayed after clicking the column header's drop-down button, which is displayed when you hover the column header. It allows you to customize column settings. For example: Sort, Filter or Group the Grid by the current column.
|
|
163
|
+
* Property type: GridColumnMenu
|
|
164
|
+
*/
|
|
165
|
+
get columnMenu(): GridColumnMenu {
|
|
166
|
+
return this.nativeElement ? this.nativeElement.columnMenu : undefined;
|
|
167
|
+
}
|
|
168
|
+
set columnMenu(value: GridColumnMenu) {
|
|
169
|
+
if (this.nativeElement) {
|
|
170
|
+
this.nativeElement.columnMenu = value;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** Describes the settings of the column groups.
|
|
175
|
+
* Property type: GridColumnGroup[]
|
|
176
|
+
*/
|
|
177
|
+
get columnGroups(): GridColumnGroup[] {
|
|
178
|
+
return this.nativeElement ? this.nativeElement.columnGroups : undefined;
|
|
179
|
+
}
|
|
180
|
+
set columnGroups(value: GridColumnGroup[]) {
|
|
181
|
+
if (this.nativeElement) {
|
|
182
|
+
this.nativeElement.columnGroups = value;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** Sets or gets details about conditional formatting to be applied to the Grid's cells.
|
|
187
|
+
* Property type: GridConditionalFormatting[]
|
|
188
|
+
*/
|
|
189
|
+
get conditionalFormatting(): GridConditionalFormatting[] {
|
|
190
|
+
return this.nativeElement ? this.nativeElement.conditionalFormatting : undefined;
|
|
191
|
+
}
|
|
192
|
+
set conditionalFormatting(value: GridConditionalFormatting[]) {
|
|
193
|
+
if (this.nativeElement) {
|
|
194
|
+
this.nativeElement.conditionalFormatting = value;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** Sets the Grid Charting Data Visualization.
|
|
199
|
+
* Property type: GridCharting
|
|
200
|
+
*/
|
|
201
|
+
get charting(): GridCharting {
|
|
202
|
+
return this.nativeElement ? this.nativeElement.charting : undefined;
|
|
203
|
+
}
|
|
204
|
+
set charting(value: GridCharting) {
|
|
205
|
+
if (this.nativeElement) {
|
|
206
|
+
this.nativeElement.charting = value;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** Sets the TreeGrid checkboxes.
|
|
211
|
+
* Property type: GridCheckBoxes
|
|
212
|
+
*/
|
|
213
|
+
get checkBoxes(): GridCheckBoxes {
|
|
214
|
+
return this.nativeElement ? this.nativeElement.checkBoxes : undefined;
|
|
215
|
+
}
|
|
216
|
+
set checkBoxes(value: GridCheckBoxes) {
|
|
217
|
+
if (this.nativeElement) {
|
|
218
|
+
this.nativeElement.checkBoxes = value;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** Sets the Grid Data Export options.
|
|
223
|
+
* Property type: GridDataExport
|
|
224
|
+
*/
|
|
225
|
+
get dataExport(): GridDataExport {
|
|
226
|
+
return this.nativeElement ? this.nativeElement.dataExport : undefined;
|
|
227
|
+
}
|
|
228
|
+
set dataExport(value: GridDataExport) {
|
|
229
|
+
if (this.nativeElement) {
|
|
230
|
+
this.nativeElement.dataExport = value;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Sets the grid's data source. The value of dataSource can be an instance of JQX.DataAdapter or an Array.
|
|
235
|
+
* Property type: any
|
|
236
|
+
*/
|
|
237
|
+
get dataSource(): any {
|
|
238
|
+
return this.nativeElement ? this.nativeElement.dataSource : undefined;
|
|
239
|
+
}
|
|
240
|
+
set dataSource(value: any) {
|
|
241
|
+
if (this.nativeElement) {
|
|
242
|
+
this.nativeElement.dataSource = value;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Sets the grid's data source settings when the dataSource property is set to an Array or URL.
|
|
247
|
+
* Property type: GridDataSourceSettings
|
|
248
|
+
*/
|
|
249
|
+
get dataSourceSettings(): GridDataSourceSettings {
|
|
250
|
+
return this.nativeElement ? this.nativeElement.dataSourceSettings : undefined;
|
|
251
|
+
}
|
|
252
|
+
set dataSourceSettings(value: GridDataSourceSettings) {
|
|
253
|
+
if (this.nativeElement) {
|
|
254
|
+
this.nativeElement.dataSourceSettings = value;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** Describes the grid's editing settings.
|
|
259
|
+
* Property type: GridEditing
|
|
260
|
+
*/
|
|
261
|
+
get editing(): GridEditing {
|
|
262
|
+
return this.nativeElement ? this.nativeElement.editing : undefined;
|
|
263
|
+
}
|
|
264
|
+
set editing(value: GridEditing) {
|
|
265
|
+
if (this.nativeElement) {
|
|
266
|
+
this.nativeElement.editing = value;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** Describes the grid's filtering settings.
|
|
271
|
+
* Property type: GridFiltering
|
|
272
|
+
*/
|
|
273
|
+
get filtering(): GridFiltering {
|
|
274
|
+
return this.nativeElement ? this.nativeElement.filtering : undefined;
|
|
275
|
+
}
|
|
276
|
+
set filtering(value: GridFiltering) {
|
|
277
|
+
if (this.nativeElement) {
|
|
278
|
+
this.nativeElement.filtering = value;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** Describes the footer settings of the grid.
|
|
283
|
+
* Property type: GridFooter
|
|
284
|
+
*/
|
|
285
|
+
get footer(): GridFooter {
|
|
286
|
+
return this.nativeElement ? this.nativeElement.footer : undefined;
|
|
287
|
+
}
|
|
288
|
+
set footer(value: GridFooter) {
|
|
289
|
+
if (this.nativeElement) {
|
|
290
|
+
this.nativeElement.footer = value;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/** Sets or gets whether Excel-like formulas can be passed as cell values. Formulas are always preceded by the = sign and are re-evaluated when cell values are changed. This feature depends on the third-party free plug-in formula-parser (the file formula-parser.min.js has to be referenced).
|
|
295
|
+
* Property type: boolean
|
|
296
|
+
*/
|
|
297
|
+
get formulas(): boolean {
|
|
298
|
+
return this.nativeElement ? this.nativeElement.formulas : undefined;
|
|
299
|
+
}
|
|
300
|
+
set formulas(value: boolean) {
|
|
301
|
+
if (this.nativeElement) {
|
|
302
|
+
this.nativeElement.formulas = value;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** Describes the grid's grouping settings.
|
|
307
|
+
* Property type: GridGrouping
|
|
308
|
+
*/
|
|
309
|
+
get grouping(): GridGrouping {
|
|
310
|
+
return this.nativeElement ? this.nativeElement.grouping : undefined;
|
|
311
|
+
}
|
|
312
|
+
set grouping(value: GridGrouping) {
|
|
313
|
+
if (this.nativeElement) {
|
|
314
|
+
this.nativeElement.grouping = value;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/** Describes the settings for the group header.
|
|
319
|
+
* Property type: GridGroupHeader
|
|
320
|
+
*/
|
|
321
|
+
get groupHeader(): GridGroupHeader {
|
|
322
|
+
return this.nativeElement ? this.nativeElement.groupHeader : undefined;
|
|
323
|
+
}
|
|
324
|
+
set groupHeader(value: GridGroupHeader) {
|
|
325
|
+
if (this.nativeElement) {
|
|
326
|
+
this.nativeElement.groupHeader = value;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** Describes the header settings of the grid.
|
|
331
|
+
* Property type: GridHeader
|
|
332
|
+
*/
|
|
333
|
+
get header(): GridHeader {
|
|
334
|
+
return this.nativeElement ? this.nativeElement.header : undefined;
|
|
335
|
+
}
|
|
336
|
+
set header(value: GridHeader) {
|
|
337
|
+
if (this.nativeElement) {
|
|
338
|
+
this.nativeElement.header = value;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/** An object containing settings related to the grid's layout.
|
|
343
|
+
* Property type: GridLayout
|
|
344
|
+
*/
|
|
345
|
+
get layout(): GridLayout {
|
|
346
|
+
return this.nativeElement ? this.nativeElement.layout : undefined;
|
|
347
|
+
}
|
|
348
|
+
set layout(value: GridLayout) {
|
|
349
|
+
if (this.nativeElement) {
|
|
350
|
+
this.nativeElement.layout = value;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Sets or gets the language. Used in conjunction with the property messages.
|
|
355
|
+
* Property type: string
|
|
356
|
+
*/
|
|
357
|
+
get locale(): string {
|
|
358
|
+
return this.nativeElement ? this.nativeElement.locale : undefined;
|
|
359
|
+
}
|
|
360
|
+
set locale(value: string) {
|
|
361
|
+
if (this.nativeElement) {
|
|
362
|
+
this.nativeElement.locale = value;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/** Sets the messages values.
|
|
367
|
+
* Property type: any
|
|
368
|
+
*/
|
|
369
|
+
get messages(): any {
|
|
370
|
+
return this.nativeElement ? this.nativeElement.messages : undefined;
|
|
371
|
+
}
|
|
372
|
+
set messages(value: any) {
|
|
373
|
+
if (this.nativeElement) {
|
|
374
|
+
this.nativeElement.messages = value;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** Callback function(chart: JQX.Chart) called when the chart has been initialized. You can use this function to customize the Chart element settings.
|
|
379
|
+
* Property type: {(cell: GridCell): void}
|
|
380
|
+
*/
|
|
381
|
+
get onCellValue(): {(cell: GridCell): void} {
|
|
382
|
+
return this.nativeElement ? this.nativeElement.onCellValue : undefined;
|
|
383
|
+
}
|
|
384
|
+
set onCellValue(value: {(cell: GridCell): void}) {
|
|
385
|
+
if (this.nativeElement) {
|
|
386
|
+
this.nativeElement.onCellValue = value;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/** Callback function() called when the grid has been rendered.
|
|
391
|
+
* Property type: {(cells: GridCell[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}
|
|
392
|
+
*/
|
|
393
|
+
get onCellUpdate(): {(cells: GridCell[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void} {
|
|
394
|
+
return this.nativeElement ? this.nativeElement.onCellUpdate : undefined;
|
|
395
|
+
}
|
|
396
|
+
set onCellUpdate(value: {(cells: GridCell[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}) {
|
|
397
|
+
if (this.nativeElement) {
|
|
398
|
+
this.nativeElement.onCellUpdate = value;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/** Callback function() called when the grid has been rendered for first time and bindings are completed. The component is ready.
|
|
403
|
+
* Property type: {(cell: GridCell): void}
|
|
404
|
+
*/
|
|
405
|
+
get onCellRender(): {(cell: GridCell): void} {
|
|
406
|
+
return this.nativeElement ? this.nativeElement.onCellRender : undefined;
|
|
407
|
+
}
|
|
408
|
+
set onCellRender(value: {(cell: GridCell): void}) {
|
|
409
|
+
if (this.nativeElement) {
|
|
410
|
+
this.nativeElement.onCellRender = value;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/** Describes the paging settings.
|
|
415
|
+
* Property type: {(id: string, dataField: string, value: any): boolean}
|
|
416
|
+
*/
|
|
417
|
+
get onCellBeginEdit(): {(id: string, dataField: string, value: any): boolean} {
|
|
418
|
+
return this.nativeElement ? this.nativeElement.onCellBeginEdit : undefined;
|
|
419
|
+
}
|
|
420
|
+
set onCellBeginEdit(value: {(id: string, dataField: string, value: any): boolean}) {
|
|
421
|
+
if (this.nativeElement) {
|
|
422
|
+
this.nativeElement.onCellBeginEdit = value;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** Describes the pager settings.
|
|
427
|
+
* Property type: {(): void}
|
|
428
|
+
*/
|
|
429
|
+
get onBeforeInit(): {(): void} {
|
|
430
|
+
return this.nativeElement ? this.nativeElement.onBeforeInit : undefined;
|
|
431
|
+
}
|
|
432
|
+
set onBeforeInit(value: {(): void}) {
|
|
433
|
+
if (this.nativeElement) {
|
|
434
|
+
this.nativeElement.onBeforeInit = value;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** Sets the row details.
|
|
439
|
+
* Property type: {(): void}
|
|
440
|
+
*/
|
|
441
|
+
get onInit(): {(): void} {
|
|
442
|
+
return this.nativeElement ? this.nativeElement.onInit : undefined;
|
|
443
|
+
}
|
|
444
|
+
set onInit(value: {(): void}) {
|
|
445
|
+
if (this.nativeElement) {
|
|
446
|
+
this.nativeElement.onInit = value;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** Sets or gets the rows CSS class rules. Different CSS class names are conditionally applied. Example: rowCSSRules: { 'cell-class-1': settings => settings.data.quantity === 5, 'cell-class-2': settings => settings.data.quantity < 5, 'cell-class-3': settings => settings.data.quantity > 5 }. The settings object contains the following properties: index, data, row, api.
|
|
451
|
+
* Property type: {(): void}
|
|
452
|
+
*/
|
|
453
|
+
get onAfterInit(): {(): void} {
|
|
454
|
+
return this.nativeElement ? this.nativeElement.onAfterInit : undefined;
|
|
455
|
+
}
|
|
456
|
+
set onAfterInit(value: {(): void}) {
|
|
457
|
+
if (this.nativeElement) {
|
|
458
|
+
this.nativeElement.onAfterInit = value;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
|
|
463
|
+
* Property type: any
|
|
464
|
+
*/
|
|
465
|
+
get onChartInit(): any {
|
|
466
|
+
return this.nativeElement ? this.nativeElement.onChartInit : undefined;
|
|
467
|
+
}
|
|
468
|
+
set onChartInit(value: any) {
|
|
469
|
+
if (this.nativeElement) {
|
|
470
|
+
this.nativeElement.onChartInit = value;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** The rows property is used to describe all rows displayed in the grid.
|
|
475
|
+
* Property type: any
|
|
476
|
+
*/
|
|
477
|
+
get onRender(): any {
|
|
478
|
+
return this.nativeElement ? this.nativeElement.onRender : undefined;
|
|
479
|
+
}
|
|
480
|
+
set onRender(value: any) {
|
|
481
|
+
if (this.nativeElement) {
|
|
482
|
+
this.nativeElement.onRender = value;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** Sets the scroll mode settings.
|
|
487
|
+
* Property type: any
|
|
488
|
+
*/
|
|
489
|
+
get onLoad(): any {
|
|
490
|
+
return this.nativeElement ? this.nativeElement.onLoad : undefined;
|
|
491
|
+
}
|
|
492
|
+
set onLoad(value: any) {
|
|
493
|
+
if (this.nativeElement) {
|
|
494
|
+
this.nativeElement.onLoad = value;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/** Describes the summary row settings.
|
|
499
|
+
* Property type: {(event: KeyboardEvent): void}
|
|
500
|
+
*/
|
|
501
|
+
get onKey(): {(event: KeyboardEvent): void} {
|
|
502
|
+
return this.nativeElement ? this.nativeElement.onKey : undefined;
|
|
503
|
+
}
|
|
504
|
+
set onKey(value: {(event: KeyboardEvent): void}) {
|
|
505
|
+
if (this.nativeElement) {
|
|
506
|
+
this.nativeElement.onKey = value;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/** Sets the grid's state settings.
|
|
511
|
+
* Property type: {(index: number, row: GridRow): void}
|
|
512
|
+
*/
|
|
513
|
+
get onRowInit(): {(index: number, row: GridRow): void} {
|
|
514
|
+
return this.nativeElement ? this.nativeElement.onRowInit : undefined;
|
|
515
|
+
}
|
|
516
|
+
set onRowInit(value: {(index: number, row: GridRow): void}) {
|
|
517
|
+
if (this.nativeElement) {
|
|
518
|
+
this.nativeElement.onRowInit = value;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/** Describes the selection settings.
|
|
523
|
+
* Property type: {(index: number, row: GridRow, details: HTMLElement): void}
|
|
524
|
+
*/
|
|
525
|
+
get onRowDetailInit(): {(index: number, row: GridRow, details: HTMLElement): void} {
|
|
526
|
+
return this.nativeElement ? this.nativeElement.onRowDetailInit : undefined;
|
|
527
|
+
}
|
|
528
|
+
set onRowDetailInit(value: {(index: number, row: GridRow, details: HTMLElement): void}) {
|
|
529
|
+
if (this.nativeElement) {
|
|
530
|
+
this.nativeElement.onRowDetailInit = value;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/** Describes sorting settings.
|
|
535
|
+
* Property type: {(index: number, row: GridRow, details: HTMLElement): void}
|
|
536
|
+
*/
|
|
537
|
+
get onRowDetailUpdated(): {(index: number, row: GridRow, details: HTMLElement): void} {
|
|
538
|
+
return this.nativeElement ? this.nativeElement.onRowDetailUpdated : undefined;
|
|
539
|
+
}
|
|
540
|
+
set onRowDetailUpdated(value: {(index: number, row: GridRow, details: HTMLElement): void}) {
|
|
541
|
+
if (this.nativeElement) {
|
|
542
|
+
this.nativeElement.onRowDetailUpdated = value;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/** Sets the grid users. Expects an array with 'id', 'name' and optionally 'color' and 'image' properties.
|
|
547
|
+
* Property type: {(index: number, row: GridRow, history: any[]): void}
|
|
548
|
+
*/
|
|
549
|
+
get onRowHistory(): {(index: number, row: GridRow, history: any[]): void} {
|
|
550
|
+
return this.nativeElement ? this.nativeElement.onRowHistory : undefined;
|
|
551
|
+
}
|
|
552
|
+
set onRowHistory(value: {(index: number, row: GridRow, history: any[]): void}) {
|
|
553
|
+
if (this.nativeElement) {
|
|
554
|
+
this.nativeElement.onRowHistory = value;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/** Sets the grid's image and filter upload settings for the image and attachment columns.
|
|
559
|
+
* Property type: {(index: number, row: GridRow, history: any[]): void}
|
|
560
|
+
*/
|
|
561
|
+
get onRowStyle(): {(index: number, row: GridRow, history: any[]): void} {
|
|
562
|
+
return this.nativeElement ? this.nativeElement.onRowStyle : undefined;
|
|
563
|
+
}
|
|
564
|
+
set onRowStyle(value: {(index: number, row: GridRow, history: any[]): void}) {
|
|
565
|
+
if (this.nativeElement) {
|
|
566
|
+
this.nativeElement.onRowStyle = value;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** Sets the current data view. The possible values are 'grid', 'kanban' and 'card'.
|
|
571
|
+
* Property type: {(index: number[], row: GridRow[]): void}
|
|
572
|
+
*/
|
|
573
|
+
get onRowInserted(): {(index: number[], row: GridRow[]): void} {
|
|
574
|
+
return this.nativeElement ? this.nativeElement.onRowInserted : undefined;
|
|
575
|
+
}
|
|
576
|
+
set onRowInserted(value: {(index: number[], row: GridRow[]): void}) {
|
|
577
|
+
if (this.nativeElement) {
|
|
578
|
+
this.nativeElement.onRowInserted = value;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/** undefined
|
|
583
|
+
* Property type: {(indexes: number[], rows: GridRow[]): void}
|
|
584
|
+
*/
|
|
585
|
+
get onRowRemoved(): {(indexes: number[], rows: GridRow[]): void} {
|
|
586
|
+
return this.nativeElement ? this.nativeElement.onRowRemoved : undefined;
|
|
587
|
+
}
|
|
588
|
+
set onRowRemoved(value: {(indexes: number[], rows: GridRow[]): void}) {
|
|
589
|
+
if (this.nativeElement) {
|
|
590
|
+
this.nativeElement.onRowRemoved = value;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/** undefined
|
|
595
|
+
* Property type: {(index: number[], row: GridRow[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}
|
|
596
|
+
*/
|
|
597
|
+
get onRowUpdate(): {(index: number[], row: GridRow[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void} {
|
|
598
|
+
return this.nativeElement ? this.nativeElement.onRowUpdate : undefined;
|
|
599
|
+
}
|
|
600
|
+
set onRowUpdate(value: {(index: number[], row: GridRow[], oldValues: any[], values: any[], confirm: {(commit: boolean): void}): void}) {
|
|
601
|
+
if (this.nativeElement) {
|
|
602
|
+
this.nativeElement.onRowUpdate = value;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/** undefined
|
|
607
|
+
* Property type: {(index: number[], row: GridRow[]): void}
|
|
608
|
+
*/
|
|
609
|
+
get onRowUpdated(): {(index: number[], row: GridRow[]): void} {
|
|
610
|
+
return this.nativeElement ? this.nativeElement.onRowUpdated : undefined;
|
|
611
|
+
}
|
|
612
|
+
set onRowUpdated(value: {(index: number[], row: GridRow[]): void}) {
|
|
613
|
+
if (this.nativeElement) {
|
|
614
|
+
this.nativeElement.onRowUpdated = value;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/** undefined
|
|
619
|
+
* Property type: {(index: number, data: any, row: GridRow[]): void}
|
|
620
|
+
*/
|
|
621
|
+
get onRowClass(): {(index: number, data: any, row: GridRow[]): void} {
|
|
622
|
+
return this.nativeElement ? this.nativeElement.onRowClass : undefined;
|
|
623
|
+
}
|
|
624
|
+
set onRowClass(value: {(index: number, data: any, row: GridRow[]): void}) {
|
|
625
|
+
if (this.nativeElement) {
|
|
626
|
+
this.nativeElement.onRowClass = value;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** undefined
|
|
631
|
+
* Property type: {(index: number, dataField: string, cellValue: any, data: any, row: GridRow[]): void}
|
|
632
|
+
*/
|
|
633
|
+
get onCellClass(): {(index: number, dataField: string, cellValue: any, data: any, row: GridRow[]): void} {
|
|
634
|
+
return this.nativeElement ? this.nativeElement.onCellClass : undefined;
|
|
635
|
+
}
|
|
636
|
+
set onCellClass(value: {(index: number, dataField: string, cellValue: any, data: any, row: GridRow[]): void}) {
|
|
637
|
+
if (this.nativeElement) {
|
|
638
|
+
this.nativeElement.onCellClass = value;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/** undefined
|
|
643
|
+
* Property type: {(index: number, column: GridColumn): void}
|
|
644
|
+
*/
|
|
645
|
+
get onColumnInit(): {(index: number, column: GridColumn): void} {
|
|
646
|
+
return this.nativeElement ? this.nativeElement.onColumnInit : undefined;
|
|
647
|
+
}
|
|
648
|
+
set onColumnInit(value: {(index: number, column: GridColumn): void}) {
|
|
649
|
+
if (this.nativeElement) {
|
|
650
|
+
this.nativeElement.onColumnInit = value;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/** undefined
|
|
655
|
+
* Property type: {(index: number, column: GridColumn): void}
|
|
656
|
+
*/
|
|
657
|
+
get onColumnInserted(): {(index: number, column: GridColumn): void} {
|
|
658
|
+
return this.nativeElement ? this.nativeElement.onColumnInserted : undefined;
|
|
659
|
+
}
|
|
660
|
+
set onColumnInserted(value: {(index: number, column: GridColumn): void}) {
|
|
661
|
+
if (this.nativeElement) {
|
|
662
|
+
this.nativeElement.onColumnInserted = value;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** undefined
|
|
667
|
+
* Property type: {(index: number, column: GridColumn): void}
|
|
668
|
+
*/
|
|
669
|
+
get onColumnRemoved(): {(index: number, column: GridColumn): void} {
|
|
670
|
+
return this.nativeElement ? this.nativeElement.onColumnRemoved : undefined;
|
|
671
|
+
}
|
|
672
|
+
set onColumnRemoved(value: {(index: number, column: GridColumn): void}) {
|
|
673
|
+
if (this.nativeElement) {
|
|
674
|
+
this.nativeElement.onColumnRemoved = value;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/** undefined
|
|
679
|
+
* Property type: {(index: number, column: GridColumn): void}
|
|
680
|
+
*/
|
|
681
|
+
get onColumnUpdated(): {(index: number, column: GridColumn): void} {
|
|
682
|
+
return this.nativeElement ? this.nativeElement.onColumnUpdated : undefined;
|
|
683
|
+
}
|
|
684
|
+
set onColumnUpdated(value: {(index: number, column: GridColumn): void}) {
|
|
685
|
+
if (this.nativeElement) {
|
|
686
|
+
this.nativeElement.onColumnUpdated = value;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/** undefined
|
|
691
|
+
* Property type: {(dataField: string, cloneColumnDataField: string, index: number, duplicateCells: boolean): void}
|
|
692
|
+
*/
|
|
693
|
+
get onColumnClone(): {(dataField: string, cloneColumnDataField: string, index: number, duplicateCells: boolean): void} {
|
|
694
|
+
return this.nativeElement ? this.nativeElement.onColumnClone : undefined;
|
|
695
|
+
}
|
|
696
|
+
set onColumnClone(value: {(dataField: string, cloneColumnDataField: string, index: number, duplicateCells: boolean): void}) {
|
|
697
|
+
if (this.nativeElement) {
|
|
698
|
+
this.nativeElement.onColumnClone = value;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/** undefined
|
|
703
|
+
* Property type: {(name: string, command: any, details: GridCell, event: Event | KeyboardEvent | PointerEvent, handled: boolean): void}
|
|
704
|
+
*/
|
|
705
|
+
get onCommand(): {(name: string, command: any, details: GridCell, event: Event | KeyboardEvent | PointerEvent, handled: boolean): void} {
|
|
706
|
+
return this.nativeElement ? this.nativeElement.onCommand : undefined;
|
|
707
|
+
}
|
|
708
|
+
set onCommand(value: {(name: string, command: any, details: GridCell, event: Event | KeyboardEvent | PointerEvent, handled: boolean): void}) {
|
|
709
|
+
if (this.nativeElement) {
|
|
710
|
+
this.nativeElement.onCommand = value;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/** undefined
|
|
715
|
+
* Property type: GridPaging
|
|
716
|
+
*/
|
|
717
|
+
get paging(): GridPaging {
|
|
718
|
+
return this.nativeElement ? this.nativeElement.paging : undefined;
|
|
719
|
+
}
|
|
720
|
+
set paging(value: GridPaging) {
|
|
721
|
+
if (this.nativeElement) {
|
|
722
|
+
this.nativeElement.paging = value;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/** undefined
|
|
727
|
+
* Property type: GridPager
|
|
728
|
+
*/
|
|
729
|
+
get pager(): GridPager {
|
|
730
|
+
return this.nativeElement ? this.nativeElement.pager : undefined;
|
|
731
|
+
}
|
|
732
|
+
set pager(value: GridPager) {
|
|
733
|
+
if (this.nativeElement) {
|
|
734
|
+
this.nativeElement.pager = value;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/** undefined
|
|
739
|
+
* Property type: GridRowDetail
|
|
740
|
+
*/
|
|
741
|
+
get rowDetail(): GridRowDetail {
|
|
742
|
+
return this.nativeElement ? this.nativeElement.rowDetail : undefined;
|
|
743
|
+
}
|
|
744
|
+
set rowDetail(value: GridRowDetail) {
|
|
745
|
+
if (this.nativeElement) {
|
|
746
|
+
this.nativeElement.rowDetail = value;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/** undefined
|
|
751
|
+
* Property type: any
|
|
752
|
+
*/
|
|
753
|
+
get rowCSSRules(): any {
|
|
754
|
+
return this.nativeElement ? this.nativeElement.rowCSSRules : undefined;
|
|
755
|
+
}
|
|
756
|
+
set rowCSSRules(value: any) {
|
|
757
|
+
if (this.nativeElement) {
|
|
758
|
+
this.nativeElement.rowCSSRules = value;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/** undefined
|
|
763
|
+
* Property type: boolean
|
|
764
|
+
*/
|
|
765
|
+
get rightToLeft(): boolean {
|
|
766
|
+
return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
|
|
767
|
+
}
|
|
768
|
+
set rightToLeft(value: boolean) {
|
|
769
|
+
if (this.nativeElement) {
|
|
770
|
+
this.nativeElement.rightToLeft = value;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/** undefined
|
|
775
|
+
* Property type: GridRow[]
|
|
776
|
+
*/
|
|
777
|
+
get rows(): GridRow[] {
|
|
778
|
+
return this.nativeElement ? this.nativeElement.rows : undefined;
|
|
779
|
+
}
|
|
780
|
+
set rows(value: GridRow[]) {
|
|
781
|
+
if (this.nativeElement) {
|
|
782
|
+
this.nativeElement.rows = value;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/** undefined
|
|
787
|
+
* Property type: Scrolling | string
|
|
788
|
+
*/
|
|
789
|
+
get scrolling(): Scrolling | string {
|
|
790
|
+
return this.nativeElement ? this.nativeElement.scrolling : undefined;
|
|
791
|
+
}
|
|
792
|
+
set scrolling(value: Scrolling | string) {
|
|
793
|
+
if (this.nativeElement) {
|
|
794
|
+
this.nativeElement.scrolling = value;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/** undefined
|
|
799
|
+
* Property type: GridSummaryRow
|
|
800
|
+
*/
|
|
801
|
+
get summaryRow(): GridSummaryRow {
|
|
802
|
+
return this.nativeElement ? this.nativeElement.summaryRow : undefined;
|
|
803
|
+
}
|
|
804
|
+
set summaryRow(value: GridSummaryRow) {
|
|
805
|
+
if (this.nativeElement) {
|
|
806
|
+
this.nativeElement.summaryRow = value;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/** undefined
|
|
811
|
+
* Property type: GridStateSettings
|
|
812
|
+
*/
|
|
813
|
+
get stateSettings(): GridStateSettings {
|
|
814
|
+
return this.nativeElement ? this.nativeElement.stateSettings : undefined;
|
|
815
|
+
}
|
|
816
|
+
set stateSettings(value: GridStateSettings) {
|
|
817
|
+
if (this.nativeElement) {
|
|
818
|
+
this.nativeElement.stateSettings = value;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/** undefined
|
|
823
|
+
* Property type: GridSelection
|
|
824
|
+
*/
|
|
825
|
+
get selection(): GridSelection {
|
|
826
|
+
return this.nativeElement ? this.nativeElement.selection : undefined;
|
|
827
|
+
}
|
|
828
|
+
set selection(value: GridSelection) {
|
|
829
|
+
if (this.nativeElement) {
|
|
830
|
+
this.nativeElement.selection = value;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
/** undefined
|
|
835
|
+
* Property type: GridSorting
|
|
836
|
+
*/
|
|
837
|
+
get sorting(): GridSorting {
|
|
838
|
+
return this.nativeElement ? this.nativeElement.sorting : undefined;
|
|
839
|
+
}
|
|
840
|
+
set sorting(value: GridSorting) {
|
|
841
|
+
if (this.nativeElement) {
|
|
842
|
+
this.nativeElement.sorting = value;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/** undefined
|
|
847
|
+
* Property type: any[]
|
|
848
|
+
*/
|
|
849
|
+
get users(): any[] {
|
|
850
|
+
return this.nativeElement ? this.nativeElement.users : undefined;
|
|
851
|
+
}
|
|
852
|
+
set users(value: any[]) {
|
|
853
|
+
if (this.nativeElement) {
|
|
854
|
+
this.nativeElement.users = value;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/** undefined
|
|
859
|
+
* Property type: GridUploadSettings
|
|
860
|
+
*/
|
|
861
|
+
get uploadSettings(): GridUploadSettings {
|
|
862
|
+
return this.nativeElement ? this.nativeElement.uploadSettings : undefined;
|
|
863
|
+
}
|
|
864
|
+
set uploadSettings(value: GridUploadSettings) {
|
|
865
|
+
if (this.nativeElement) {
|
|
866
|
+
this.nativeElement.uploadSettings = value;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/** undefined
|
|
871
|
+
* Property type: string
|
|
872
|
+
*/
|
|
873
|
+
get view(): string {
|
|
874
|
+
return this.nativeElement ? this.nativeElement.view : undefined;
|
|
875
|
+
}
|
|
876
|
+
set view(value: string) {
|
|
877
|
+
if (this.nativeElement) {
|
|
878
|
+
this.nativeElement.view = value;
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
// Gets the properties of the React component.
|
|
884
|
+
get properties(): string[] {
|
|
885
|
+
return ["appearance","behavior","currentUser","columnHeader","clipboard","columns","contextMenu","columnMenu","columnGroups","conditionalFormatting","charting","checkBoxes","dataExport","dataSource","dataSourceSettings","editing","filtering","footer","formulas","grouping","groupHeader","header","layout","locale","messages","onCellValue","onCellUpdate","onCellRender","onCellBeginEdit","onBeforeInit","onInit","onAfterInit","onChartInit","onRender","onLoad","onKey","onRowInit","onRowDetailInit","onRowDetailUpdated","onRowHistory","onRowStyle","onRowInserted","onRowRemoved","onRowUpdate","onRowUpdated","onRowClass","onCellClass","onColumnInit","onColumnInserted","onColumnRemoved","onColumnUpdated","onColumnClone","onCommand","paging","pager","rowDetail","rowCSSRules","rightToLeft","rows","scrolling","summaryRow","stateSettings","selection","sorting","users","uploadSettings","view"];
|
|
886
|
+
}
|
|
887
|
+
/** This event is triggered, when the edit begins. After the event occurs, editing starts. If you need to prevent the editing for specific cells, rows or columns, you can call event.preventDefault();.
|
|
888
|
+
* @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, column, cell, data, value)
|
|
889
|
+
* id - The edited row id.
|
|
890
|
+
* dataField - The edited column data field.
|
|
891
|
+
* row - The edited row.
|
|
892
|
+
* column - The edited column.
|
|
893
|
+
* cell - The edited cell.
|
|
894
|
+
* data - The edited row's data.
|
|
895
|
+
* value - The edited cell's value.
|
|
896
|
+
*/
|
|
897
|
+
onBeginEdit?: ((event?: Event) => void) | undefined
|
|
898
|
+
/** This event is triggered, when the Grid's header toolbar is displayed and the 'OK' button of a header dropdown is clicked. For example, when you open the columns customize panel, reorder columns and click the 'OK' button.
|
|
899
|
+
* @param event. The custom event. Custom event was created with: event.detail( type)
|
|
900
|
+
* type - The type of dropdown. Possible values: 'filter', 'sort', 'search', 'group', 'format', 'customize'
|
|
901
|
+
*/
|
|
902
|
+
onBatchChange?: ((event?: Event) => void) | undefined
|
|
903
|
+
/** This event is triggered, when the Grid's header toolbar is displayed and the 'Cancel' button of a header dropdown is clicked.
|
|
904
|
+
* @param event. The custom event. Custom event was created with: event.detail( type)
|
|
905
|
+
* type - The type of dropdown. Possible values: 'filter', 'sort', 'search', 'group', 'format', 'customize'
|
|
906
|
+
*/
|
|
907
|
+
onBatchCancel?: ((event?: Event) => void) | undefined
|
|
908
|
+
/** This event is triggered, when the selection is changed. When you select with a drag, the event is triggered when the drag starts and ends.
|
|
909
|
+
* @param event. The custom event. Custom event was created with: event.detail( started, finished, originalEvent)
|
|
910
|
+
* started - The flag is <em>true</em>, when the selection starts. The flag is <em>false</em>, when the selection ends and when the user changes the selection by dragging.
|
|
911
|
+
* finished - The flag is <em>true</em>, when the selection ends. The flag is <em>false</em>, when the selection starts and when the user changes the selection by dragging.
|
|
912
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
913
|
+
*/
|
|
914
|
+
onChange?: ((event?: Event) => void) | undefined
|
|
915
|
+
/** This event is triggered, when the user clicks on the header of a column.
|
|
916
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, originalEvent)
|
|
917
|
+
* column - The clicked column.
|
|
918
|
+
* dataField - The column's data field.
|
|
919
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
920
|
+
*/
|
|
921
|
+
onColumnClick?: ((event?: Event) => void) | undefined
|
|
922
|
+
/** This event is triggered, when the user double clicks on the header of a column.
|
|
923
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, originalEvent)
|
|
924
|
+
* column - The double-clicked column.
|
|
925
|
+
* dataField - The column's data field.
|
|
926
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
927
|
+
*/
|
|
928
|
+
onColumnDoubleClick?: ((event?: Event) => void) | undefined
|
|
929
|
+
/** This event is triggered, when the user resized a column.
|
|
930
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, oldWidth, width)
|
|
931
|
+
* column - The resized column.
|
|
932
|
+
* dataField - The column's data field.
|
|
933
|
+
* oldWidth - The old width of the column.
|
|
934
|
+
* width - The new width of the column.
|
|
935
|
+
*/
|
|
936
|
+
onColumnResize?: ((event?: Event) => void) | undefined
|
|
937
|
+
/** This event is triggered, when the user starts a column drag.
|
|
938
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, originalEvent)
|
|
939
|
+
* column - The column.
|
|
940
|
+
* dataField - The column's data field.
|
|
941
|
+
* index - The column's index
|
|
942
|
+
* originalEvent - The origianl Event object.
|
|
943
|
+
*/
|
|
944
|
+
onColumnDragStart?: ((event?: Event) => void) | undefined
|
|
945
|
+
/** This event is triggered, when a column property is changed.
|
|
946
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, propertyName, oldValue, value)
|
|
947
|
+
* column - The resized column.
|
|
948
|
+
* propertyName - The changed property's name.
|
|
949
|
+
* oldValue - The old value(s) of the column.
|
|
950
|
+
* value - The new value(s) of the column.
|
|
951
|
+
*/
|
|
952
|
+
onColumnChange?: ((event?: Event) => void) | undefined
|
|
953
|
+
/** This event is triggered, when the user drags a column.
|
|
954
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, data, originalEvent)
|
|
955
|
+
* column - The column.
|
|
956
|
+
* dataField - The column's data field.
|
|
957
|
+
* index - The column's index
|
|
958
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
959
|
+
* originalEvent - The origianl Event object.
|
|
960
|
+
*/
|
|
961
|
+
onColumnDragging?: ((event?: Event) => void) | undefined
|
|
962
|
+
/** This event is triggered, when the user drops a column.
|
|
963
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, newIndex, data, originalEvent)
|
|
964
|
+
* column - The column.
|
|
965
|
+
* dataField - The column's data field.
|
|
966
|
+
* index - The column's index
|
|
967
|
+
* newIndex - The column's new index
|
|
968
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
969
|
+
* originalEvent - The origianl Event object.
|
|
970
|
+
*/
|
|
971
|
+
onColumnDragEnd?: ((event?: Event) => void) | undefined
|
|
972
|
+
/** This event is triggered, when the user reorders a column.
|
|
973
|
+
* @param event. The custom event. Custom event was created with: event.detail( column, dataField, index, newIndex, data, originalEvent)
|
|
974
|
+
* column - The column.
|
|
975
|
+
* dataField - The column's data field.
|
|
976
|
+
* index - The column's index
|
|
977
|
+
* newIndex - The column's new index
|
|
978
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
979
|
+
* originalEvent - The origianl Event object.
|
|
980
|
+
*/
|
|
981
|
+
onColumnReorder?: ((event?: Event) => void) | undefined
|
|
982
|
+
/** This event is triggered, when the user enters a comment in the row edit dialog.
|
|
983
|
+
* @param event. The custom event. Custom event was created with: event.detail( id, comment)
|
|
984
|
+
* id - The row's id.
|
|
985
|
+
* comment - The comment object. The comment object has 'text: string', 'id: string', 'userId: string | number', and 'time: date' fields. The 'text' is the comment's text. 'id' is the comment's unique id, 'userId' is the user's id who entered the comment and 'time' is a javascript date object.
|
|
986
|
+
*/
|
|
987
|
+
onCommentAdd?: ((event?: Event) => void) | undefined
|
|
988
|
+
/** This event is triggered, when the user removes a comment in the row edit dialog.
|
|
989
|
+
* @param event. The custom event. Custom event was created with: event.detail( id, comment)
|
|
990
|
+
* id - The row's id.
|
|
991
|
+
* comment - The comment object. The comment object has 'text: string', 'id: string', 'userId: string | number', and 'time: date' fields. The 'text' is the comment's text. 'id' is the comment's unique id, 'userId' is the user's id who entered the comment and 'time' is a javascript date object.
|
|
992
|
+
*/
|
|
993
|
+
onCommentRemove?: ((event?: Event) => void) | undefined
|
|
994
|
+
/** This event is triggered, when the user clicks on a context menu item.
|
|
995
|
+
* @param event. The custom event. Custom event was created with: event.detail( id, dataField, command)
|
|
996
|
+
* id - The row's id.
|
|
997
|
+
* dataField - The column's data field.
|
|
998
|
+
* command - Command function.
|
|
999
|
+
*/
|
|
1000
|
+
onContextMenuItemClick?: ((event?: Event) => void) | undefined
|
|
1001
|
+
/** This event is triggered, when the user starts a row drag.
|
|
1002
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, index, originalEvent)
|
|
1003
|
+
* row - The row.
|
|
1004
|
+
* id - The row's id
|
|
1005
|
+
* index - The row's index
|
|
1006
|
+
* originalEvent - The origianl Event object.
|
|
1007
|
+
*/
|
|
1008
|
+
onRowDragStart?: ((event?: Event) => void) | undefined
|
|
1009
|
+
/** This event is triggered, when the user drags a row.
|
|
1010
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, index, data, originalEvent)
|
|
1011
|
+
* row - The row.
|
|
1012
|
+
* id - The row's id
|
|
1013
|
+
* index - The row's index
|
|
1014
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
1015
|
+
* originalEvent - The origianl Event object.
|
|
1016
|
+
*/
|
|
1017
|
+
onRowDragging?: ((event?: Event) => void) | undefined
|
|
1018
|
+
/** This event is triggered, when the user drags a row.
|
|
1019
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, index, newIndex, data, originalEvent)
|
|
1020
|
+
* row - The row.
|
|
1021
|
+
* id - The row's id
|
|
1022
|
+
* index - The row's index
|
|
1023
|
+
* newIndex - The row's new index
|
|
1024
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
1025
|
+
* originalEvent - The origianl Event object.
|
|
1026
|
+
*/
|
|
1027
|
+
onRowDragEnd?: ((event?: Event) => void) | undefined
|
|
1028
|
+
/** This event is triggered, when the user reorders a row.
|
|
1029
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, index, newIndex, data, originalEvent)
|
|
1030
|
+
* row - The row.
|
|
1031
|
+
* id - The row's id
|
|
1032
|
+
* index - The row's index
|
|
1033
|
+
* newIndex - The row's new index
|
|
1034
|
+
* data - The dragging object. data.feedback and data.feedbackLine are HTML Elements which are displayed while the user drags. The object has error(), success() and data() methods which you can call to set the feedback state.
|
|
1035
|
+
* originalEvent - The origianl Event object.
|
|
1036
|
+
*/
|
|
1037
|
+
onRowReorder?: ((event?: Event) => void) | undefined
|
|
1038
|
+
/** This event is triggered, when the user expands a row of the grid. The Grid is in TreeGrid/Grouping mode.
|
|
1039
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, originalEvent)
|
|
1040
|
+
* row - The expanded row.
|
|
1041
|
+
* id - The row's id
|
|
1042
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1043
|
+
*/
|
|
1044
|
+
onRowExpand?: ((event?: Event) => void) | undefined
|
|
1045
|
+
/** This event is triggered, when the user collapsed a row of the grid. The Grid is in TreeGrid/Grouping mode.
|
|
1046
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, originalEvent)
|
|
1047
|
+
* row - The collapsed row.
|
|
1048
|
+
* id - The row's id
|
|
1049
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1050
|
+
*/
|
|
1051
|
+
onRowCollapse?: ((event?: Event) => void) | undefined
|
|
1052
|
+
/** This event is triggered, when the user clicks on a row of the grid.
|
|
1053
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, data, isRightClick, pageX, pageY)
|
|
1054
|
+
* row - The clicked row.
|
|
1055
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1056
|
+
* id - Gets the row id.
|
|
1057
|
+
* data - Gets the row data.
|
|
1058
|
+
* isRightClick - Gets whether the pointing device's right button is clicked.
|
|
1059
|
+
* pageX - Gets the click's X position.
|
|
1060
|
+
* pageY - Gets the click's Y position.
|
|
1061
|
+
*/
|
|
1062
|
+
onRowClick?: ((event?: Event) => void) | undefined
|
|
1063
|
+
/** This event is triggered, when the user double clicks on a row of the grid.
|
|
1064
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, data, isRightClick, pageX, pageY)
|
|
1065
|
+
* row - The double-clicked row.
|
|
1066
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1067
|
+
* id - Gets the row id.
|
|
1068
|
+
* data - Gets the row data.
|
|
1069
|
+
* isRightClick - Gets whether the pointing device's right button is clicked.
|
|
1070
|
+
* pageX - Gets the click's X position.
|
|
1071
|
+
* pageY - Gets the click's Y position.
|
|
1072
|
+
*/
|
|
1073
|
+
onRowDoubleClick?: ((event?: Event) => void) | undefined
|
|
1074
|
+
/** This event is triggered, when the user resized a row.
|
|
1075
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, id, oldHeight, height)
|
|
1076
|
+
* row - The resized row.
|
|
1077
|
+
* id - Gets the row id.
|
|
1078
|
+
* oldHeight - The old height of the row.
|
|
1079
|
+
* height - The new height of the row.
|
|
1080
|
+
*/
|
|
1081
|
+
onRowResize?: ((event?: Event) => void) | undefined
|
|
1082
|
+
/** This event is triggered, when the user clicks on the row header's star.
|
|
1083
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, originalEvent, id, value)
|
|
1084
|
+
* row - The clicked row.
|
|
1085
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1086
|
+
* id - Gets the row id.
|
|
1087
|
+
* value - Gets whether the row is starred or not.
|
|
1088
|
+
*/
|
|
1089
|
+
onRowStarred?: ((event?: Event) => void) | undefined
|
|
1090
|
+
/** This event is triggered, when the user clicks on a cell of the grid.
|
|
1091
|
+
* @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent, id, dataField, value, isRightClick, pageX, pageY)
|
|
1092
|
+
* cell - The clicked cell.
|
|
1093
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1094
|
+
* id - Gets the row id.
|
|
1095
|
+
* dataField - Gets the column dataField.
|
|
1096
|
+
* value - Gets the cell value.
|
|
1097
|
+
* isRightClick - Gets whether the pointing device's right button is clicked.
|
|
1098
|
+
* pageX - Gets the click's X position.
|
|
1099
|
+
* pageY - Gets the click's Y position.
|
|
1100
|
+
*/
|
|
1101
|
+
onCellClick?: ((event?: Event) => void) | undefined
|
|
1102
|
+
/** This event is triggered, when the user double clicks on a cell of the grid.
|
|
1103
|
+
* @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent, id, dataField, value, isRightClick, pageX, pageY)
|
|
1104
|
+
* cell - The double-clicked cell.
|
|
1105
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1106
|
+
* id - Gets the row id.
|
|
1107
|
+
* dataField - Gets the column dataField.
|
|
1108
|
+
* value - Gets the cell value.
|
|
1109
|
+
* isRightClick - Gets whether the pointing device's right button is clicked.
|
|
1110
|
+
* pageX - Gets the click's X position.
|
|
1111
|
+
* pageY - Gets the click's Y position.
|
|
1112
|
+
*/
|
|
1113
|
+
onCellDoubleClick?: ((event?: Event) => void) | undefined
|
|
1114
|
+
/** This event is triggered, when the edit ends.
|
|
1115
|
+
* @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, column, cell, data, value)
|
|
1116
|
+
* id - The edited row id.
|
|
1117
|
+
* dataField - The edited column data field.
|
|
1118
|
+
* row - The edited row.
|
|
1119
|
+
* column - The edited column.
|
|
1120
|
+
* cell - The edited cell.
|
|
1121
|
+
* data - The edited row's data.
|
|
1122
|
+
* value - The edited cell's value.
|
|
1123
|
+
*/
|
|
1124
|
+
onEndEdit?: ((event?: Event) => void) | undefined
|
|
1125
|
+
/** This event is triggered, when a filter is added or removed.
|
|
1126
|
+
* @param event. The custom event. Custom event was created with: event.detail( columns, data, expressions)
|
|
1127
|
+
* columns - Array of columns.
|
|
1128
|
+
* data - Array of {dataField: string, filter: object}. <em>dataField</em> is the column's data field. <em>filter</em> is a FilterGroup object.
|
|
1129
|
+
* expressions - Array of {dataField: string, filter: string}. <em>dataField</em> is the column's data field. <em>filter</em> is a filter expression like 'startsWith B'. In each array item, you will have an object with column's name and filter string. Example: [['firstName', 'contains Andrew or contains Nancy'], ['quantity', '<= 3 and >= 8']], [['firstName', 'EQUAL' 'Andrew' or 'EQUAL' 'Antoni' or 'EQUAL' 'Beate']], [['lastName','CONTAINS' 'burke' or 'CONTAINS' 'peterson']]. Filter conditions used in the filter expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
1130
|
+
*/
|
|
1131
|
+
onFilter?: ((event?: Event) => void) | undefined
|
|
1132
|
+
/** This event is triggered, when the rows grouping is changed.
|
|
1133
|
+
* @param event. The custom event. Custom event was created with: event.detail( groups)
|
|
1134
|
+
* groups - Array of column data fields.
|
|
1135
|
+
*/
|
|
1136
|
+
onGroup?: ((event?: Event) => void) | undefined
|
|
1137
|
+
/** This event is triggered, when the add new column dialog is opened.
|
|
1138
|
+
* @param event. The custom event. Custom event was created with: event.detail( dataField)
|
|
1139
|
+
* dataField - The column data field.
|
|
1140
|
+
*/
|
|
1141
|
+
onOpenColumnDialog?: ((event?: Event) => void) | undefined
|
|
1142
|
+
/** This event is triggered, when the add new column dialog is closed.
|
|
1143
|
+
* @param event. The custom event. Custom event was created with: event.detail( dataField)
|
|
1144
|
+
* dataField - The column data field.
|
|
1145
|
+
*/
|
|
1146
|
+
onCloseColumnDialog?: ((event?: Event) => void) | undefined
|
|
1147
|
+
/** This event is triggered, when the grid is resized.
|
|
1148
|
+
* @param event. The custom event. */
|
|
1149
|
+
onResize?: ((event?: Event) => void) | undefined
|
|
1150
|
+
/** This event is triggered when the user touches and holds on the row for at least 300ms.
|
|
1151
|
+
* @param event. The custom event. Custom event was created with: event.detail( row, originalEvent)
|
|
1152
|
+
* row - The tapped row.
|
|
1153
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1154
|
+
*/
|
|
1155
|
+
onRowTap?: ((event?: Event) => void) | undefined
|
|
1156
|
+
/** This event is triggered when the user touches and holds on the cell for at least 300ms.
|
|
1157
|
+
* @param event. The custom event. Custom event was created with: event.detail( cell, originalEvent)
|
|
1158
|
+
* cell - The tapped row.
|
|
1159
|
+
* originalEvent - The original event object, which is 'pointer', 'touch' or 'mouse' Event object, depending on the device type and web browser
|
|
1160
|
+
*/
|
|
1161
|
+
onCellTap?: ((event?: Event) => void) | undefined
|
|
1162
|
+
/** This event is triggered, when the user changes the pages.
|
|
1163
|
+
* @param event. The custom event. */
|
|
1164
|
+
onPage?: ((event?: Event) => void) | undefined
|
|
1165
|
+
/** This event is triggered, when a sorting column is added or removed.
|
|
1166
|
+
* @param event. The custom event. Custom event was created with: event.detail( columns, data, sortDataFields, sortDataTypes, sortOrders, sortIndexes)
|
|
1167
|
+
* columns - Array of columns.
|
|
1168
|
+
* data - Array of {dataField: string, sortOrder: string, sortIndex: number}. <em>dataField</em> is the column's data field. <em>sortOrder</em> is 'asc' or 'desc', <em>sortIndex</em> is the index of the column in multi column sorting.
|
|
1169
|
+
* sortDataFields - Array of column data fields.
|
|
1170
|
+
* sortDataTypes - Array of column data types. The values in the array would be 'string', 'date', 'boolean' or 'number'.
|
|
1171
|
+
* sortOrders - Array of column orders. The values in the array would be 'asc' or 'desc'.
|
|
1172
|
+
* sortIndexes - Array of column sort indexes. When multiple sorting is applied the sort index is an important parameter as it specifies the priority of sorting.
|
|
1173
|
+
*/
|
|
1174
|
+
onSort?: ((event?: Event) => void) | undefined
|
|
1175
|
+
/** This event is triggered, when the user reaches the bottom of the grid.
|
|
1176
|
+
* @param event. The custom event. */
|
|
1177
|
+
onScrollBottomReached?: ((event?: Event) => void) | undefined
|
|
1178
|
+
/** This event is triggered, when the user reaches the top of the grid.
|
|
1179
|
+
* @param event. The custom event. */
|
|
1180
|
+
onScrollTopReached?: ((event?: Event) => void) | undefined
|
|
1181
|
+
/** This event occurs, when the React component is created.
|
|
1182
|
+
* @param event. The custom event. */
|
|
1183
|
+
onCreate?: ((event?: Event) => void) | undefined
|
|
1184
|
+
/** This event occurs, when the React component is completely rendered.
|
|
1185
|
+
* @param event. The custom event. */
|
|
1186
|
+
onReady?: ((event?: Event) => void) | undefined
|
|
1187
|
+
|
|
1188
|
+
// Gets the events of the React component.
|
|
1189
|
+
get eventListeners(): string[] {
|
|
1190
|
+
return ["onBeginEdit","onBatchChange","onBatchCancel","onChange","onColumnClick","onColumnDoubleClick","onColumnResize","onColumnDragStart","onColumnChange","onColumnDragging","onColumnDragEnd","onColumnReorder","onCommentAdd","onCommentRemove","onContextMenuItemClick","onRowDragStart","onRowDragging","onRowDragEnd","onRowReorder","onRowExpand","onRowCollapse","onRowClick","onRowDoubleClick","onRowResize","onRowStarred","onCellClick","onCellDoubleClick","onEndEdit","onFilter","onGroup","onOpenColumnDialog","onCloseColumnDialog","onResize","onRowTap","onCellTap","onPage","onSort","onScrollBottomReached","onScrollTopReached","onCreate","onReady"];
|
|
1191
|
+
}
|
|
1192
|
+
/** Adds a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
|
|
1193
|
+
* @param {any} data. row data matching the data source
|
|
1194
|
+
* @param {boolean} insertAtBottom?. Determines whether to add the new row to the bottom or top of the collection. The default value is 'true'
|
|
1195
|
+
* @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
|
|
1196
|
+
*/
|
|
1197
|
+
public addRow(data: any, insertAtBottom?: boolean, callback?: {(row: GridRow): void}): void {
|
|
1198
|
+
if (this.nativeElement.isRendered) {
|
|
1199
|
+
this.nativeElement.addRow(data, insertAtBottom, callback);
|
|
1200
|
+
}
|
|
1201
|
+
else
|
|
1202
|
+
{
|
|
1203
|
+
this.nativeElement.whenRendered(() => {
|
|
1204
|
+
this.nativeElement.addRow(data, insertAtBottom, callback);
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
/** Adds a new row and puts it into edit mode. When batch editing is enabled, the row is not saved until the batch edit is saved.
|
|
1210
|
+
* @param {string} position?. 'near' or 'far'
|
|
1211
|
+
* @returns {boolean}
|
|
1212
|
+
*/
|
|
1213
|
+
public addNewRow(position?:string) : any {
|
|
1214
|
+
const result: any = this.nativeElement.addNewRow(position);
|
|
1215
|
+
return result;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/** Adds a new column.
|
|
1219
|
+
* @param {any} column. A Grid column object. See 'columns' property.
|
|
1220
|
+
* @returns {boolean}
|
|
1221
|
+
*/
|
|
1222
|
+
public addNewColumn(column:any) : any {
|
|
1223
|
+
const result: any = this.nativeElement.addNewColumn(column);
|
|
1224
|
+
return result;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/** 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.
|
|
1228
|
+
* @param {number} count. The count of unbound rows.
|
|
1229
|
+
* @param {string} position?. 'near' or 'far'
|
|
1230
|
+
* @returns {boolean}
|
|
1231
|
+
*/
|
|
1232
|
+
public addUnboundRow(count:number, position?:string) : any {
|
|
1233
|
+
const result: any = this.nativeElement.addUnboundRow(count, position);
|
|
1234
|
+
return result;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/** 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')
|
|
1238
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1239
|
+
* @param {string} filter. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '<= 3 and >= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
1240
|
+
* @param {boolean} refreshFilters?. Set this to false, if you will use multiple 'addFilter' calls. By doing this, you will avoid unnecessary renders.
|
|
1241
|
+
*/
|
|
1242
|
+
public addFilter(dataField: string, filter: string, refreshFilters?: boolean): void {
|
|
1243
|
+
if (this.nativeElement.isRendered) {
|
|
1244
|
+
this.nativeElement.addFilter(dataField, filter, refreshFilters);
|
|
1245
|
+
}
|
|
1246
|
+
else
|
|
1247
|
+
{
|
|
1248
|
+
this.nativeElement.whenRendered(() => {
|
|
1249
|
+
this.nativeElement.addFilter(dataField, filter, refreshFilters);
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/** Groups the Grid by a data field. This method will add a group to the Grid when grouping is enabled.
|
|
1255
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1256
|
+
*/
|
|
1257
|
+
public addGroup(dataField: string): void {
|
|
1258
|
+
if (this.nativeElement.isRendered) {
|
|
1259
|
+
this.nativeElement.addGroup(dataField);
|
|
1260
|
+
}
|
|
1261
|
+
else
|
|
1262
|
+
{
|
|
1263
|
+
this.nativeElement.whenRendered(() => {
|
|
1264
|
+
this.nativeElement.addGroup(dataField);
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/** Sorts the Grid by a data field. This method will add a sorting to the Grid when sorting is enabled.
|
|
1270
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1271
|
+
* @param {string} sortOrder. column's sort order. Use 'asc' or 'desc'.
|
|
1272
|
+
*/
|
|
1273
|
+
public addSort(dataField: string, sortOrder: string): void {
|
|
1274
|
+
if (this.nativeElement.isRendered) {
|
|
1275
|
+
this.nativeElement.addSort(dataField, sortOrder);
|
|
1276
|
+
}
|
|
1277
|
+
else
|
|
1278
|
+
{
|
|
1279
|
+
this.nativeElement.whenRendered(() => {
|
|
1280
|
+
this.nativeElement.addSort(dataField, sortOrder);
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/** Auto-sizes grid rows. This method will update the height of all Grid rows.
|
|
1286
|
+
*/
|
|
1287
|
+
public autoSizeRows(): void {
|
|
1288
|
+
if (this.nativeElement.isRendered) {
|
|
1289
|
+
this.nativeElement.autoSizeRows();
|
|
1290
|
+
}
|
|
1291
|
+
else
|
|
1292
|
+
{
|
|
1293
|
+
this.nativeElement.whenRendered(() => {
|
|
1294
|
+
this.nativeElement.autoSizeRows();
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/** Auto-sizes grid columns. This method will update the width of all Grid columns.
|
|
1300
|
+
*/
|
|
1301
|
+
public autoSizeColumns(): void {
|
|
1302
|
+
if (this.nativeElement.isRendered) {
|
|
1303
|
+
this.nativeElement.autoSizeColumns();
|
|
1304
|
+
}
|
|
1305
|
+
else
|
|
1306
|
+
{
|
|
1307
|
+
this.nativeElement.whenRendered(() => {
|
|
1308
|
+
this.nativeElement.autoSizeColumns();
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
/** Auto-sizes grid column. This method will update the width of a Grid column by measuring the cells and column header label width.
|
|
1314
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1315
|
+
*/
|
|
1316
|
+
public autoSizeColumn(dataField?: string): void {
|
|
1317
|
+
if (this.nativeElement.isRendered) {
|
|
1318
|
+
this.nativeElement.autoSizeColumn(dataField);
|
|
1319
|
+
}
|
|
1320
|
+
else
|
|
1321
|
+
{
|
|
1322
|
+
this.nativeElement.whenRendered(() => {
|
|
1323
|
+
this.nativeElement.autoSizeColumn(dataField);
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/** This method returns true, if all rows in the Grid are selected.
|
|
1329
|
+
* @returns {boolean}
|
|
1330
|
+
*/
|
|
1331
|
+
public areAllRowsSelected() : any {
|
|
1332
|
+
const result: any = this.nativeElement.areAllRowsSelected();
|
|
1333
|
+
return result;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/** Starts an update operation. This is appropriate when calling multiple methods or set multiple properties at once.
|
|
1337
|
+
*/
|
|
1338
|
+
public beginUpdate(): void {
|
|
1339
|
+
if (this.nativeElement.isRendered) {
|
|
1340
|
+
this.nativeElement.beginUpdate();
|
|
1341
|
+
}
|
|
1342
|
+
else
|
|
1343
|
+
{
|
|
1344
|
+
this.nativeElement.whenRendered(() => {
|
|
1345
|
+
this.nativeElement.beginUpdate();
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/** Begins row, cell or column. This method allows you to programmatically start a cell, row or column editing. After calling it, an editor HTMLElement will be created and displayed in the Grid.
|
|
1351
|
+
* @param {string | number} rowId. row bound id
|
|
1352
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1353
|
+
*/
|
|
1354
|
+
public beginEdit(rowId: string | number, dataField?: string): void {
|
|
1355
|
+
if (this.nativeElement.isRendered) {
|
|
1356
|
+
this.nativeElement.beginEdit(rowId, dataField);
|
|
1357
|
+
}
|
|
1358
|
+
else
|
|
1359
|
+
{
|
|
1360
|
+
this.nativeElement.whenRendered(() => {
|
|
1361
|
+
this.nativeElement.beginEdit(rowId, dataField);
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/** Clears all filters. Refreshes the view and updates all filter input components.
|
|
1367
|
+
*/
|
|
1368
|
+
public clearFilter(): void {
|
|
1369
|
+
if (this.nativeElement.isRendered) {
|
|
1370
|
+
this.nativeElement.clearFilter();
|
|
1371
|
+
}
|
|
1372
|
+
else
|
|
1373
|
+
{
|
|
1374
|
+
this.nativeElement.whenRendered(() => {
|
|
1375
|
+
this.nativeElement.clearFilter();
|
|
1376
|
+
});
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
/** Clears all data groups. Refreshes the view and updates the DataGrid component.
|
|
1381
|
+
*/
|
|
1382
|
+
public clearGroups(): void {
|
|
1383
|
+
if (this.nativeElement.isRendered) {
|
|
1384
|
+
this.nativeElement.clearGroups();
|
|
1385
|
+
}
|
|
1386
|
+
else
|
|
1387
|
+
{
|
|
1388
|
+
this.nativeElement.whenRendered(() => {
|
|
1389
|
+
this.nativeElement.clearGroups();
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/** Clears all sorting. Refreshes the view and updates the DataGrid component.
|
|
1395
|
+
*/
|
|
1396
|
+
public clearSort(): void {
|
|
1397
|
+
if (this.nativeElement.isRendered) {
|
|
1398
|
+
this.nativeElement.clearSort();
|
|
1399
|
+
}
|
|
1400
|
+
else
|
|
1401
|
+
{
|
|
1402
|
+
this.nativeElement.whenRendered(() => {
|
|
1403
|
+
this.nativeElement.clearSort();
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/** Clears the selection that user have made. All row, cell and column selection highlights will be removed.
|
|
1409
|
+
*/
|
|
1410
|
+
public clearSelection(): void {
|
|
1411
|
+
if (this.nativeElement.isRendered) {
|
|
1412
|
+
this.nativeElement.clearSelection();
|
|
1413
|
+
}
|
|
1414
|
+
else
|
|
1415
|
+
{
|
|
1416
|
+
this.nativeElement.whenRendered(() => {
|
|
1417
|
+
this.nativeElement.clearSelection();
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/** Cancels the editing. This method closes the cell editor and cancels the changes.
|
|
1423
|
+
*/
|
|
1424
|
+
public cancelEdit(): void {
|
|
1425
|
+
if (this.nativeElement.isRendered) {
|
|
1426
|
+
this.nativeElement.cancelEdit();
|
|
1427
|
+
}
|
|
1428
|
+
else
|
|
1429
|
+
{
|
|
1430
|
+
this.nativeElement.whenRendered(() => {
|
|
1431
|
+
this.nativeElement.cancelEdit();
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/** Checks a TreeGrid row. This method updates the row's check-box.
|
|
1437
|
+
* @param {string | number} rowId. row bound id
|
|
1438
|
+
*/
|
|
1439
|
+
public checkRow(rowId: string | number): void {
|
|
1440
|
+
if (this.nativeElement.isRendered) {
|
|
1441
|
+
this.nativeElement.checkRow(rowId);
|
|
1442
|
+
}
|
|
1443
|
+
else
|
|
1444
|
+
{
|
|
1445
|
+
this.nativeElement.whenRendered(() => {
|
|
1446
|
+
this.nativeElement.checkRow(rowId);
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/** Checks all TreeGrid or Grouping rows. This method updates all check-boxes in the TreeGrid or Grouping rows.
|
|
1452
|
+
*/
|
|
1453
|
+
public checkAllRows(): void {
|
|
1454
|
+
if (this.nativeElement.isRendered) {
|
|
1455
|
+
this.nativeElement.checkAllRows();
|
|
1456
|
+
}
|
|
1457
|
+
else
|
|
1458
|
+
{
|
|
1459
|
+
this.nativeElement.whenRendered(() => {
|
|
1460
|
+
this.nativeElement.checkAllRows();
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
/** Clears the user selection and empties the data source. The Grid will display 'No Rows' in the view.
|
|
1466
|
+
*/
|
|
1467
|
+
public clearRows(): void {
|
|
1468
|
+
if (this.nativeElement.isRendered) {
|
|
1469
|
+
this.nativeElement.clearRows();
|
|
1470
|
+
}
|
|
1471
|
+
else
|
|
1472
|
+
{
|
|
1473
|
+
this.nativeElement.whenRendered(() => {
|
|
1474
|
+
this.nativeElement.clearRows();
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/** Closes the column drop-down menu.
|
|
1480
|
+
*/
|
|
1481
|
+
public closeMenu(): void {
|
|
1482
|
+
if (this.nativeElement.isRendered) {
|
|
1483
|
+
this.nativeElement.closeMenu();
|
|
1484
|
+
}
|
|
1485
|
+
else
|
|
1486
|
+
{
|
|
1487
|
+
this.nativeElement.whenRendered(() => {
|
|
1488
|
+
this.nativeElement.closeMenu();
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/** Collapses a TreeGrid or Grouping row.
|
|
1494
|
+
* @param {string | number} rowId. row bound id
|
|
1495
|
+
*/
|
|
1496
|
+
public collapseRow(rowId: string | number): void {
|
|
1497
|
+
if (this.nativeElement.isRendered) {
|
|
1498
|
+
this.nativeElement.collapseRow(rowId);
|
|
1499
|
+
}
|
|
1500
|
+
else
|
|
1501
|
+
{
|
|
1502
|
+
this.nativeElement.whenRendered(() => {
|
|
1503
|
+
this.nativeElement.collapseRow(rowId);
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/** Collapses all TreeGrid or Grouping rows.
|
|
1509
|
+
*/
|
|
1510
|
+
public collapseAllRows(): void {
|
|
1511
|
+
if (this.nativeElement.isRendered) {
|
|
1512
|
+
this.nativeElement.collapseAllRows();
|
|
1513
|
+
}
|
|
1514
|
+
else
|
|
1515
|
+
{
|
|
1516
|
+
this.nativeElement.whenRendered(() => {
|
|
1517
|
+
this.nativeElement.collapseAllRows();
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/** Creates a Chart, when charting is enabled.
|
|
1523
|
+
* @param {string} type. Chart's type
|
|
1524
|
+
* @param {any} dataSource?. Chart's data source
|
|
1525
|
+
*/
|
|
1526
|
+
public createChart(type: string, dataSource?: any): void {
|
|
1527
|
+
if (this.nativeElement.isRendered) {
|
|
1528
|
+
this.nativeElement.createChart(type, dataSource);
|
|
1529
|
+
}
|
|
1530
|
+
else
|
|
1531
|
+
{
|
|
1532
|
+
this.nativeElement.whenRendered(() => {
|
|
1533
|
+
this.nativeElement.createChart(type, dataSource);
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/** Delete a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
|
|
1539
|
+
* @param {string | number} rowId. row bound id
|
|
1540
|
+
* @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the row is deleted. The callback's argument is the deleted row.
|
|
1541
|
+
*/
|
|
1542
|
+
public deleteRow(rowId: string | number, callback?: {(row: GridRow): void}): void {
|
|
1543
|
+
if (this.nativeElement.isRendered) {
|
|
1544
|
+
this.nativeElement.deleteRow(rowId, callback);
|
|
1545
|
+
}
|
|
1546
|
+
else
|
|
1547
|
+
{
|
|
1548
|
+
this.nativeElement.whenRendered(() => {
|
|
1549
|
+
this.nativeElement.deleteRow(rowId, callback);
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/** Scrolls to a row or cell. This method scrolls to a row or cell, when scrolling is necessary. If pagination is enabled, it will automatically change the page.
|
|
1555
|
+
* @param {string | number} rowId. row bound id
|
|
1556
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1557
|
+
* @returns {boolean}
|
|
1558
|
+
*/
|
|
1559
|
+
public ensureVisible(rowId:string | number, dataField?:string) : any {
|
|
1560
|
+
const result: any = this.nativeElement.ensureVisible(rowId, dataField);
|
|
1561
|
+
return result;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
/** Ends the editing. This method confirms all changes and closes the opened cell editor(s).
|
|
1565
|
+
*/
|
|
1566
|
+
public endEdit(): void {
|
|
1567
|
+
if (this.nativeElement.isRendered) {
|
|
1568
|
+
this.nativeElement.endEdit();
|
|
1569
|
+
}
|
|
1570
|
+
else
|
|
1571
|
+
{
|
|
1572
|
+
this.nativeElement.whenRendered(() => {
|
|
1573
|
+
this.nativeElement.endEdit();
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/** Ends the update operation. This method will resume the rendering and will refresh the Grid.
|
|
1579
|
+
* @param {boolean} refresh?. The flag that control the calls of the refresh method.
|
|
1580
|
+
*/
|
|
1581
|
+
public endUpdate(refresh?: boolean): void {
|
|
1582
|
+
if (this.nativeElement.isRendered) {
|
|
1583
|
+
this.nativeElement.endUpdate(refresh);
|
|
1584
|
+
}
|
|
1585
|
+
else
|
|
1586
|
+
{
|
|
1587
|
+
this.nativeElement.whenRendered(() => {
|
|
1588
|
+
this.nativeElement.endUpdate(refresh);
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/** Expands a TreeGrid or Grouping row. For example, if you want to expand the first group, then its second sub grup, then the first sub sub group, you can use: grid.expandRow('0.1.0');
|
|
1594
|
+
* @param {string | number} rowId. row bound id
|
|
1595
|
+
*/
|
|
1596
|
+
public expandRow(rowId: string | number): void {
|
|
1597
|
+
if (this.nativeElement.isRendered) {
|
|
1598
|
+
this.nativeElement.expandRow(rowId);
|
|
1599
|
+
}
|
|
1600
|
+
else
|
|
1601
|
+
{
|
|
1602
|
+
this.nativeElement.whenRendered(() => {
|
|
1603
|
+
this.nativeElement.expandRow(rowId);
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/** Expands rows to a given group level. For example 'grid.expandRowsToGroupLevel(1);' means that all groups at the root level will be expanded.
|
|
1609
|
+
* @param {number} level. row group level
|
|
1610
|
+
*/
|
|
1611
|
+
public expandRowsToGroupLevel(level: number): void {
|
|
1612
|
+
if (this.nativeElement.isRendered) {
|
|
1613
|
+
this.nativeElement.expandRowsToGroupLevel(level);
|
|
1614
|
+
}
|
|
1615
|
+
else
|
|
1616
|
+
{
|
|
1617
|
+
this.nativeElement.whenRendered(() => {
|
|
1618
|
+
this.nativeElement.expandRowsToGroupLevel(level);
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/** Expands all TreeGrid or Grouping rows.
|
|
1624
|
+
*/
|
|
1625
|
+
public expandAllRows(): void {
|
|
1626
|
+
if (this.nativeElement.isRendered) {
|
|
1627
|
+
this.nativeElement.expandAllRows();
|
|
1628
|
+
}
|
|
1629
|
+
else
|
|
1630
|
+
{
|
|
1631
|
+
this.nativeElement.whenRendered(() => {
|
|
1632
|
+
this.nativeElement.expandAllRows();
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1637
|
+
/** Exports the Grid data to .XLSX, .PDF, .JSON, .XML, .CSV, .TSV, .HTML, .JPEG or .PNG. The method uses the options of the dataExport property.
|
|
1638
|
+
* @param {string} Dataformat. 'xlsx', 'pdf', 'json', 'xml', 'csv', 'tsv', 'html', 'png', 'jpeg'.
|
|
1639
|
+
*/
|
|
1640
|
+
public exportData(Dataformat: string): void {
|
|
1641
|
+
if (this.nativeElement.isRendered) {
|
|
1642
|
+
this.nativeElement.exportData(Dataformat);
|
|
1643
|
+
}
|
|
1644
|
+
else
|
|
1645
|
+
{
|
|
1646
|
+
this.nativeElement.whenRendered(() => {
|
|
1647
|
+
this.nativeElement.exportData(Dataformat);
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
/** Finds entries by using a query and returns an array of row ids. Example: const rows = grid.find('nancy'); returns all rows that have 'nancy' value. Example 2: const rows = grid.find('nancy, davolio'); returns all rows that have 'nancy' and 'davolio' values in the same row. Example 3: const rows = grid.find(5, 'quantity', '>'); returns all rows where the value of the 'quantity' field is > 5.
|
|
1653
|
+
* @param {string} query. Search query
|
|
1654
|
+
* @param {string} dataField?. Column data field.
|
|
1655
|
+
* @param {string} condition?. Conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
1656
|
+
* @returns {any[]}
|
|
1657
|
+
*/
|
|
1658
|
+
public find(query:string, dataField?:string, condition?:string) : any {
|
|
1659
|
+
const result: any = this.nativeElement.find(query, dataField, condition);
|
|
1660
|
+
return result;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/** 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.
|
|
1664
|
+
* @param {string} query. Search query. You can enter multiple search strings, by using ','. Example: 'nancy, davolio'
|
|
1665
|
+
* @returns {any[]}
|
|
1666
|
+
*/
|
|
1667
|
+
public findCells(query:string) : any {
|
|
1668
|
+
const result: any = this.nativeElement.findCells(query);
|
|
1669
|
+
return result;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/** Filter by all columns. This method works like a global filter and applies a filter to all grid columns.
|
|
1673
|
+
* @param {string} query. Filter query to filter by.
|
|
1674
|
+
* @param {string} dataType?. Optionally filter by a specific data type like 'string', 'boolean', 'date', 'number'.
|
|
1675
|
+
*/
|
|
1676
|
+
public filterBy(query: string, dataType?: string): void {
|
|
1677
|
+
if (this.nativeElement.isRendered) {
|
|
1678
|
+
this.nativeElement.filterBy(query, dataType);
|
|
1679
|
+
}
|
|
1680
|
+
else
|
|
1681
|
+
{
|
|
1682
|
+
this.nativeElement.whenRendered(() => {
|
|
1683
|
+
this.nativeElement.filterBy(query, dataType);
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/** Navigates to a page, when paging is enabled.
|
|
1689
|
+
* @param {number} index. page index
|
|
1690
|
+
*/
|
|
1691
|
+
public goToPage(index: number): void {
|
|
1692
|
+
if (this.nativeElement.isRendered) {
|
|
1693
|
+
this.nativeElement.goToPage(index);
|
|
1694
|
+
}
|
|
1695
|
+
else
|
|
1696
|
+
{
|
|
1697
|
+
this.nativeElement.whenRendered(() => {
|
|
1698
|
+
this.nativeElement.goToPage(index);
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/** Navigates to the next page, when grid paging is enabled.
|
|
1704
|
+
*/
|
|
1705
|
+
public nextPage(): void {
|
|
1706
|
+
if (this.nativeElement.isRendered) {
|
|
1707
|
+
this.nativeElement.nextPage();
|
|
1708
|
+
}
|
|
1709
|
+
else
|
|
1710
|
+
{
|
|
1711
|
+
this.nativeElement.whenRendered(() => {
|
|
1712
|
+
this.nativeElement.nextPage();
|
|
1713
|
+
});
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/** Navigates to the prev page, when grid paging is enabled.
|
|
1718
|
+
*/
|
|
1719
|
+
public prevPage(): void {
|
|
1720
|
+
if (this.nativeElement.isRendered) {
|
|
1721
|
+
this.nativeElement.prevPage();
|
|
1722
|
+
}
|
|
1723
|
+
else
|
|
1724
|
+
{
|
|
1725
|
+
this.nativeElement.whenRendered(() => {
|
|
1726
|
+
this.nativeElement.prevPage();
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
/** Navigates to the first page, when grid paging is enabled.
|
|
1732
|
+
*/
|
|
1733
|
+
public firstPage(): void {
|
|
1734
|
+
if (this.nativeElement.isRendered) {
|
|
1735
|
+
this.nativeElement.firstPage();
|
|
1736
|
+
}
|
|
1737
|
+
else
|
|
1738
|
+
{
|
|
1739
|
+
this.nativeElement.whenRendered(() => {
|
|
1740
|
+
this.nativeElement.firstPage();
|
|
1741
|
+
});
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
/** Navigates to the last page, when grid paging is enabled.
|
|
1746
|
+
*/
|
|
1747
|
+
public lastPage(): void {
|
|
1748
|
+
if (this.nativeElement.isRendered) {
|
|
1749
|
+
this.nativeElement.lastPage();
|
|
1750
|
+
}
|
|
1751
|
+
else
|
|
1752
|
+
{
|
|
1753
|
+
this.nativeElement.whenRendered(() => {
|
|
1754
|
+
this.nativeElement.lastPage();
|
|
1755
|
+
});
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
/** Focuses and selects a cell or row. The keyboard navigation starts from the focused cell or row. Any previously applied selection will be cleared after calling this method.
|
|
1760
|
+
* @param {string | number} rowId. row bound id
|
|
1761
|
+
* @param {string} dataField?. column bound data field
|
|
1762
|
+
*/
|
|
1763
|
+
public focusAndSelect(rowId: string | number, dataField?: string): void {
|
|
1764
|
+
if (this.nativeElement.isRendered) {
|
|
1765
|
+
this.nativeElement.focusAndSelect(rowId, dataField);
|
|
1766
|
+
}
|
|
1767
|
+
else
|
|
1768
|
+
{
|
|
1769
|
+
this.nativeElement.whenRendered(() => {
|
|
1770
|
+
this.nativeElement.focusAndSelect(rowId, dataField);
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/** Iterates through each row in the grid and calls the callback for each row. This is similar to the forEach method on a JavaScript array. This is called for each row, ignoring grouping, filtering or sorting applied in the Grid.
|
|
1776
|
+
* @param {any} rowCallback. Callback function with a row object as parameter. Example: grid.forEachRow((row) => { console.log(row.id) });
|
|
1777
|
+
*/
|
|
1778
|
+
public forEachRow(rowCallback: any): void {
|
|
1779
|
+
if (this.nativeElement.isRendered) {
|
|
1780
|
+
this.nativeElement.forEachRow(rowCallback);
|
|
1781
|
+
}
|
|
1782
|
+
else
|
|
1783
|
+
{
|
|
1784
|
+
this.nativeElement.whenRendered(() => {
|
|
1785
|
+
this.nativeElement.forEachRow(rowCallback);
|
|
1786
|
+
});
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/** Similar to forEachRow. Iterates through each row in the grid and calls the callback for each row. This method takes into account filtering and sorting applied to the Grid.
|
|
1791
|
+
* @param {any} rowCallback. Callback function with a row object as parameter. Example: grid.forEachRow((row) => { console.log(row.id) });
|
|
1792
|
+
*/
|
|
1793
|
+
public forEachRowAfterFilterAndSort(rowCallback: any): void {
|
|
1794
|
+
if (this.nativeElement.isRendered) {
|
|
1795
|
+
this.nativeElement.forEachRowAfterFilterAndSort(rowCallback);
|
|
1796
|
+
}
|
|
1797
|
+
else
|
|
1798
|
+
{
|
|
1799
|
+
this.nativeElement.whenRendered(() => {
|
|
1800
|
+
this.nativeElement.forEachRowAfterFilterAndSort(rowCallback);
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
/** Gets the maximum position of the vertical scrollbar. You can use this method in combination with the setVerticalScrollValue to apply a new scroll position.
|
|
1806
|
+
* @returns {number}
|
|
1807
|
+
*/
|
|
1808
|
+
public getVerticalScrollMax() : any {
|
|
1809
|
+
const result: any = this.nativeElement.getVerticalScrollMax();
|
|
1810
|
+
return result;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
/** Gets the position of the vertical scrollbar.
|
|
1814
|
+
* @returns {number}
|
|
1815
|
+
*/
|
|
1816
|
+
public getVerticalScrollValue() : any {
|
|
1817
|
+
const result: any = this.nativeElement.getVerticalScrollValue();
|
|
1818
|
+
return result;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/** Gets the maximum position of the horizontal scrollbar. You can use this method in combination with the setHorizontalScrollValue to apply a new scroll position.
|
|
1822
|
+
* @returns {number}
|
|
1823
|
+
*/
|
|
1824
|
+
public getHorizontalScrollMax() : any {
|
|
1825
|
+
const result: any = this.nativeElement.getHorizontalScrollMax();
|
|
1826
|
+
return result;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
/** Gets the position of the horizontal scrollbar.
|
|
1830
|
+
* @returns {number}
|
|
1831
|
+
*/
|
|
1832
|
+
public getHorizontalScrollValue() : any {
|
|
1833
|
+
const result: any = this.nativeElement.getHorizontalScrollValue();
|
|
1834
|
+
return result;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
/** 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'.
|
|
1838
|
+
* @returns {any}
|
|
1839
|
+
*/
|
|
1840
|
+
public getColumns() : any {
|
|
1841
|
+
const result: any = this.nativeElement.getColumns();
|
|
1842
|
+
return result;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
/** Gets the editing cell(s), when the grid is editing.
|
|
1846
|
+
* @returns {any[]}
|
|
1847
|
+
*/
|
|
1848
|
+
public getEditCells() : any {
|
|
1849
|
+
const result: any = this.nativeElement.getEditCells();
|
|
1850
|
+
return result;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/** Gets the groups array.
|
|
1854
|
+
* @returns {any[]}
|
|
1855
|
+
*/
|
|
1856
|
+
public getGroups() : any {
|
|
1857
|
+
const result: any = this.nativeElement.getGroups();
|
|
1858
|
+
return result;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
/** 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.
|
|
1862
|
+
* @returns {{[dataField: string]: { sortOrder: string, sortIndex: number }}}
|
|
1863
|
+
*/
|
|
1864
|
+
public getSortedColumns() : any {
|
|
1865
|
+
const result: any = this.nativeElement.getSortedColumns();
|
|
1866
|
+
return result;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
/** Gets the selection.
|
|
1870
|
+
* @returns {any}
|
|
1871
|
+
*/
|
|
1872
|
+
public getSelection() : any {
|
|
1873
|
+
const result: any = this.nativeElement.getSelection();
|
|
1874
|
+
return result;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/** 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.
|
|
1878
|
+
* @returns {any[]}
|
|
1879
|
+
*/
|
|
1880
|
+
public getSelectedRows() : any {
|
|
1881
|
+
const result: any = this.nativeElement.getSelectedRows();
|
|
1882
|
+
return result;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
/** Gets the selected row ids.
|
|
1886
|
+
* @returns {any[]}
|
|
1887
|
+
*/
|
|
1888
|
+
public getSelectedRowIds() : any {
|
|
1889
|
+
const result: any = this.nativeElement.getSelectedRowIds();
|
|
1890
|
+
return result;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
/** Gets the selected row indexes.
|
|
1894
|
+
* @returns {any[]}
|
|
1895
|
+
*/
|
|
1896
|
+
public getSelectedRowIndexes() : any {
|
|
1897
|
+
const result: any = this.nativeElement.getSelectedRowIndexes();
|
|
1898
|
+
return result;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
/** 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.
|
|
1902
|
+
* @returns {any[]}
|
|
1903
|
+
*/
|
|
1904
|
+
public getSelectedCells() : any {
|
|
1905
|
+
const result: any = this.nativeElement.getSelectedCells();
|
|
1906
|
+
return result;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
/** Gets an array of columns with applied filters.
|
|
1910
|
+
* @returns {any}
|
|
1911
|
+
*/
|
|
1912
|
+
public getFilteredColumns() : any {
|
|
1913
|
+
const result: any = this.nativeElement.getFilteredColumns();
|
|
1914
|
+
return result;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
/** Gets an array of rows, which are visible and match the applied filter.
|
|
1918
|
+
* @returns {any}
|
|
1919
|
+
*/
|
|
1920
|
+
public getVisibleRows() : any {
|
|
1921
|
+
const result: any = this.nativeElement.getVisibleRows();
|
|
1922
|
+
return result;
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/** Gets the result of the getVisibleRows or the rows hierarchy, when the Grid is in TreeGrid/Grouping mode.
|
|
1926
|
+
* @returns {any}
|
|
1927
|
+
*/
|
|
1928
|
+
public getViewRows() : any {
|
|
1929
|
+
const result: any = this.nativeElement.getViewRows();
|
|
1930
|
+
return result;
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
/** Gets a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
|
|
1934
|
+
* @returns {any}
|
|
1935
|
+
*/
|
|
1936
|
+
public getState() : any {
|
|
1937
|
+
const result: any = this.nativeElement.getState();
|
|
1938
|
+
return result;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
/** Gets the changes from the batch edit.
|
|
1942
|
+
* @returns {{ upDated: [{ id: string, dataField: string, oldValue: Object, newValue: Object }], deleted: [{id: string, data: Object}], added: [{id: string, data: Object}] }}
|
|
1943
|
+
*/
|
|
1944
|
+
public getBatchEditChanges() : any {
|
|
1945
|
+
const result: any = this.nativeElement.getBatchEditChanges();
|
|
1946
|
+
return result;
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
/** Gets a value of a cell.
|
|
1950
|
+
* @param {string | number} rowId. row bound id
|
|
1951
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1952
|
+
* @returns {any}
|
|
1953
|
+
*/
|
|
1954
|
+
public getCellValue(rowId:string | number, dataField:string) : any {
|
|
1955
|
+
const result: any = this.nativeElement.getCellValue(rowId, dataField);
|
|
1956
|
+
return result;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
/** Gets a column. Returns a Grid column object.
|
|
1960
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1961
|
+
* @returns {GridColumn}
|
|
1962
|
+
*/
|
|
1963
|
+
public getColumn(dataField:string) : any {
|
|
1964
|
+
const result: any = this.nativeElement.getColumn(dataField);
|
|
1965
|
+
return result;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/** Gets a value of a column.
|
|
1969
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
1970
|
+
* @param {string} propertyName. The property name.
|
|
1971
|
+
* @returns {any}
|
|
1972
|
+
*/
|
|
1973
|
+
public getColumnProperty(dataField:string, propertyName:string) : any {
|
|
1974
|
+
const result: any = this.nativeElement.getColumnProperty(dataField, propertyName);
|
|
1975
|
+
return result;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
/** Gets a value of a row.
|
|
1979
|
+
* @param {string | number} rowId. row bound id
|
|
1980
|
+
* @param {string} propertyName. The property name.
|
|
1981
|
+
* @returns {any}
|
|
1982
|
+
*/
|
|
1983
|
+
public getRowProperty(rowId:string | number, propertyName:string) : any {
|
|
1984
|
+
const result: any = this.nativeElement.getRowProperty(rowId, propertyName);
|
|
1985
|
+
return result;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/** Gets a row. Returns a Grid row object.
|
|
1989
|
+
* @param {string | number} rowId. row bound id
|
|
1990
|
+
* @returns {GridRow}
|
|
1991
|
+
*/
|
|
1992
|
+
public getRow(rowId:string | number) : any {
|
|
1993
|
+
const result: any = this.nativeElement.getRow(rowId);
|
|
1994
|
+
return result;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
/** Gets a row by its index. Returns a Grid row object.
|
|
1998
|
+
* @param {number} rowIndex. row bound index
|
|
1999
|
+
* @returns {GridRow}
|
|
2000
|
+
*/
|
|
2001
|
+
public getRowByIndex(rowIndex:number) : any {
|
|
2002
|
+
const result: any = this.nativeElement.getRowByIndex(rowIndex);
|
|
2003
|
+
return result;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
/** Gets the Data source data associated to the row.
|
|
2007
|
+
* @param {string | number} rowId. row bound id
|
|
2008
|
+
* @returns {any}
|
|
2009
|
+
*/
|
|
2010
|
+
public getRowData(rowId:string | number) : any {
|
|
2011
|
+
const result: any = this.nativeElement.getRowData(rowId);
|
|
2012
|
+
return result;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
/** Gets the Row's id by a row index.
|
|
2016
|
+
* @param {number} rowIndex. row index
|
|
2017
|
+
* @returns {string | number}
|
|
2018
|
+
*/
|
|
2019
|
+
public getRowId(rowIndex:number) : any {
|
|
2020
|
+
const result: any = this.nativeElement.getRowId(rowIndex);
|
|
2021
|
+
return result;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/** Gets whether a column's drop-down menu is opened.
|
|
2025
|
+
* @returns {boolean}
|
|
2026
|
+
*/
|
|
2027
|
+
public hasMenu() : any {
|
|
2028
|
+
const result: any = this.nativeElement.hasMenu();
|
|
2029
|
+
return result;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
/** This method returns true, if any rows in the Grid are selected.
|
|
2033
|
+
* @returns {boolean}
|
|
2034
|
+
*/
|
|
2035
|
+
public hasSelectedRows() : any {
|
|
2036
|
+
const result: any = this.nativeElement.hasSelectedRows();
|
|
2037
|
+
return result;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
/** Hides the Details of a Row, when row details are enabled.
|
|
2041
|
+
* @param {string | number} rowId. row bound id
|
|
2042
|
+
*/
|
|
2043
|
+
public hideDetail(rowId: string | number): void {
|
|
2044
|
+
if (this.nativeElement.isRendered) {
|
|
2045
|
+
this.nativeElement.hideDetail(rowId);
|
|
2046
|
+
}
|
|
2047
|
+
else
|
|
2048
|
+
{
|
|
2049
|
+
this.nativeElement.whenRendered(() => {
|
|
2050
|
+
this.nativeElement.hideDetail(rowId);
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
/** Highlights a column. Highlights a Grid column.
|
|
2056
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2057
|
+
*/
|
|
2058
|
+
public highlightColumn(dataField: string): void {
|
|
2059
|
+
if (this.nativeElement.isRendered) {
|
|
2060
|
+
this.nativeElement.highlightColumn(dataField);
|
|
2061
|
+
}
|
|
2062
|
+
else
|
|
2063
|
+
{
|
|
2064
|
+
this.nativeElement.whenRendered(() => {
|
|
2065
|
+
this.nativeElement.highlightColumn(dataField);
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/** Highlights a cell. Calling the method a second time toggle the highlight state.
|
|
2071
|
+
* @param {string | number} rowId. row bound id
|
|
2072
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2073
|
+
* @param {string} className?. CSS Class Name
|
|
2074
|
+
*/
|
|
2075
|
+
public highlightCell(rowId: string | number, dataField: string, className?: string): void {
|
|
2076
|
+
if (this.nativeElement.isRendered) {
|
|
2077
|
+
this.nativeElement.highlightCell(rowId, dataField, className);
|
|
2078
|
+
}
|
|
2079
|
+
else
|
|
2080
|
+
{
|
|
2081
|
+
this.nativeElement.whenRendered(() => {
|
|
2082
|
+
this.nativeElement.highlightCell(rowId, dataField, className);
|
|
2083
|
+
});
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
/** Highlights a row. Calling the method a second time toggle the highlight state.
|
|
2088
|
+
* @param {string | number} rowId. row bound id
|
|
2089
|
+
* @param {string} className?. CSS Class Name
|
|
2090
|
+
*/
|
|
2091
|
+
public highlightRow(rowId: string | number, className?: string): void {
|
|
2092
|
+
if (this.nativeElement.isRendered) {
|
|
2093
|
+
this.nativeElement.highlightRow(rowId, className);
|
|
2094
|
+
}
|
|
2095
|
+
else
|
|
2096
|
+
{
|
|
2097
|
+
this.nativeElement.whenRendered(() => {
|
|
2098
|
+
this.nativeElement.highlightRow(rowId, className);
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/** Inserts a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
|
|
2104
|
+
* @param {any} data. row data matching the data source
|
|
2105
|
+
* @param {number} index?. Determines the insert index. The default value is the last index.
|
|
2106
|
+
* @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the new row is added. The callback's argument is the new row.
|
|
2107
|
+
*/
|
|
2108
|
+
public insertRow(data: any, index?: number, callback?: {(row: GridRow): void}): void {
|
|
2109
|
+
if (this.nativeElement.isRendered) {
|
|
2110
|
+
this.nativeElement.insertRow(data, index, callback);
|
|
2111
|
+
}
|
|
2112
|
+
else
|
|
2113
|
+
{
|
|
2114
|
+
this.nativeElement.whenRendered(() => {
|
|
2115
|
+
this.nativeElement.insertRow(data, index, callback);
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/** Loads a previously saved Grid state. You can pass a state name when there is a state which was previously saved with the saveState(stateName) method call or a state object returned by the saveState or getState method calls. The state object is required to be a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
|
|
2121
|
+
* @param {any} state. state name or state object
|
|
2122
|
+
* @returns {any}
|
|
2123
|
+
*/
|
|
2124
|
+
public loadState(state:any) : any {
|
|
2125
|
+
const result: any = this.nativeElement.loadState(state);
|
|
2126
|
+
return result;
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
/** Opens a column drop-down menu.
|
|
2130
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2131
|
+
*/
|
|
2132
|
+
public openMenu(dataField: string): void {
|
|
2133
|
+
if (this.nativeElement.isRendered) {
|
|
2134
|
+
this.nativeElement.openMenu(dataField);
|
|
2135
|
+
}
|
|
2136
|
+
else
|
|
2137
|
+
{
|
|
2138
|
+
this.nativeElement.whenRendered(() => {
|
|
2139
|
+
this.nativeElement.openMenu(dataField);
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
/** Opens a context menu. Note that context menu should be enabled.
|
|
2145
|
+
* @param {number} left. Left Position.
|
|
2146
|
+
* @param {number} top. Top Position.
|
|
2147
|
+
*/
|
|
2148
|
+
public openContextMenu(left: number, top: number): void {
|
|
2149
|
+
if (this.nativeElement.isRendered) {
|
|
2150
|
+
this.nativeElement.openContextMenu(left, top);
|
|
2151
|
+
}
|
|
2152
|
+
else
|
|
2153
|
+
{
|
|
2154
|
+
this.nativeElement.whenRendered(() => {
|
|
2155
|
+
this.nativeElement.openContextMenu(left, top);
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
/** Prints the Grid data. The method uses the options of the dataExport property. When printed, the Grid will not display any scrollbars so all rows and columns will be displayed. The grid will auto resize width and height to fit all contents. To customize the printing options, you can use the dataExport property.
|
|
2161
|
+
*/
|
|
2162
|
+
public print(): void {
|
|
2163
|
+
if (this.nativeElement.isRendered) {
|
|
2164
|
+
this.nativeElement.print();
|
|
2165
|
+
}
|
|
2166
|
+
else
|
|
2167
|
+
{
|
|
2168
|
+
this.nativeElement.whenRendered(() => {
|
|
2169
|
+
this.nativeElement.print();
|
|
2170
|
+
});
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
/** Renders the grid. This method will make a full-refresh like in the initial Grid creation. It will create Rows, Columns and Cells HTML Elements and then refresh the Grid layout.
|
|
2175
|
+
*/
|
|
2176
|
+
public refresh(): void {
|
|
2177
|
+
if (this.nativeElement.isRendered) {
|
|
2178
|
+
this.nativeElement.refresh();
|
|
2179
|
+
}
|
|
2180
|
+
else
|
|
2181
|
+
{
|
|
2182
|
+
this.nativeElement.whenRendered(() => {
|
|
2183
|
+
this.nativeElement.refresh();
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2188
|
+
/** Refreshes the grid with the current property values. This method will refresh the Grid layout.
|
|
2189
|
+
*/
|
|
2190
|
+
public refreshView(): void {
|
|
2191
|
+
if (this.nativeElement.isRendered) {
|
|
2192
|
+
this.nativeElement.refreshView();
|
|
2193
|
+
}
|
|
2194
|
+
else
|
|
2195
|
+
{
|
|
2196
|
+
this.nativeElement.whenRendered(() => {
|
|
2197
|
+
this.nativeElement.refreshView();
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
/** Refreshes the grid cells in view. The method is useful for live-updates of cell values.
|
|
2203
|
+
*/
|
|
2204
|
+
public resetState(): void {
|
|
2205
|
+
if (this.nativeElement.isRendered) {
|
|
2206
|
+
this.nativeElement.resetState();
|
|
2207
|
+
}
|
|
2208
|
+
else
|
|
2209
|
+
{
|
|
2210
|
+
this.nativeElement.whenRendered(() => {
|
|
2211
|
+
this.nativeElement.resetState();
|
|
2212
|
+
});
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
/** Resets the Grid state.
|
|
2217
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2218
|
+
* @param {boolean} refreshFilters?. Set this to false, if you need to make multiple removeFilter calls.
|
|
2219
|
+
*/
|
|
2220
|
+
public removeFilter(dataField: string, refreshFilters?: boolean): void {
|
|
2221
|
+
if (this.nativeElement.isRendered) {
|
|
2222
|
+
this.nativeElement.removeFilter(dataField, refreshFilters);
|
|
2223
|
+
}
|
|
2224
|
+
else
|
|
2225
|
+
{
|
|
2226
|
+
this.nativeElement.whenRendered(() => {
|
|
2227
|
+
this.nativeElement.removeFilter(dataField, refreshFilters);
|
|
2228
|
+
});
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
/** Removes a column filter.
|
|
2233
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2234
|
+
*/
|
|
2235
|
+
public removeGroup(dataField: string): void {
|
|
2236
|
+
if (this.nativeElement.isRendered) {
|
|
2237
|
+
this.nativeElement.removeGroup(dataField);
|
|
2238
|
+
}
|
|
2239
|
+
else
|
|
2240
|
+
{
|
|
2241
|
+
this.nativeElement.whenRendered(() => {
|
|
2242
|
+
this.nativeElement.removeGroup(dataField);
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
/** Removes a group by data field. This method will remove a group to the Grid when grouping is enabled.
|
|
2248
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2249
|
+
*/
|
|
2250
|
+
public removeSort(dataField: string): void {
|
|
2251
|
+
if (this.nativeElement.isRendered) {
|
|
2252
|
+
this.nativeElement.removeSort(dataField);
|
|
2253
|
+
}
|
|
2254
|
+
else
|
|
2255
|
+
{
|
|
2256
|
+
this.nativeElement.whenRendered(() => {
|
|
2257
|
+
this.nativeElement.removeSort(dataField);
|
|
2258
|
+
});
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
/** Removes a sorting by data field. This method will remove a sorting from a Grid column.
|
|
2263
|
+
*/
|
|
2264
|
+
public refreshSort(): void {
|
|
2265
|
+
if (this.nativeElement.isRendered) {
|
|
2266
|
+
this.nativeElement.refreshSort();
|
|
2267
|
+
}
|
|
2268
|
+
else
|
|
2269
|
+
{
|
|
2270
|
+
this.nativeElement.whenRendered(() => {
|
|
2271
|
+
this.nativeElement.refreshSort();
|
|
2272
|
+
});
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
/** Re-sorts the Grid by using the already applied column sortings and re-renders the Grid.
|
|
2277
|
+
*/
|
|
2278
|
+
public revertBatchEdit(): void {
|
|
2279
|
+
if (this.nativeElement.isRendered) {
|
|
2280
|
+
this.nativeElement.revertBatchEdit();
|
|
2281
|
+
}
|
|
2282
|
+
else
|
|
2283
|
+
{
|
|
2284
|
+
this.nativeElement.whenRendered(() => {
|
|
2285
|
+
this.nativeElement.revertBatchEdit();
|
|
2286
|
+
});
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
/** Reverts the batch edit changes. This method cancels all changes made by the end-user.
|
|
2291
|
+
* @param {string | number} dataField. The data field or column index of the first grid column.
|
|
2292
|
+
* @param {string | number} referenceDataField. The data field or column index of the second grid column.
|
|
2293
|
+
* @param {boolean} insertAfter?. Determines whether to insert the first column after the reference column.
|
|
2294
|
+
*/
|
|
2295
|
+
public reorderColumns(dataField: string | number, referenceDataField: string | number, insertAfter?: boolean): void {
|
|
2296
|
+
if (this.nativeElement.isRendered) {
|
|
2297
|
+
this.nativeElement.reorderColumns(dataField, referenceDataField, insertAfter);
|
|
2298
|
+
}
|
|
2299
|
+
else
|
|
2300
|
+
{
|
|
2301
|
+
this.nativeElement.whenRendered(() => {
|
|
2302
|
+
this.nativeElement.reorderColumns(dataField, referenceDataField, insertAfter);
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/** Reorders two DataGrid columns.
|
|
2308
|
+
* @param {string} name?. state name
|
|
2309
|
+
* @returns {any}
|
|
2310
|
+
*/
|
|
2311
|
+
public saveState(name?:string) : any {
|
|
2312
|
+
const result: any = this.nativeElement.saveState(name);
|
|
2313
|
+
return result;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/** Saves the Grid state and returns a JSON object with the following fields: 'sort', 'columns', 'expandedRows', 'filter', 'groups', 'paging', 'selectedCells', 'selectedrows'. The 'sort' represents an object which contains the sorted columns. Each key in that json object is the column's dataField item which has sortOrder: string and sortIndex: int properties. The sortOrder could be either 'asc' or 'desc'. Similarly, the filter object contains the filtered columns. Each key in that object is a column data field and each value has 'filters' array property with the applied filters to the column. The 'columns' property contains an array of columns with saved properties such as visible, width and freeze. The 'expandedRows' property contains the indexes of the expanded rows. The 'groups' property contains the grouped column data fields and the selectedCells and selectedRows include information about the cells or rows selection. These depend on the selection mode used in the Grid. The 'paging' object includes the sub-properties 'count', 'index' and 'size' which determine the count of pages, the current page's index and the page size.
|
|
2317
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2318
|
+
* @param {string | null} sortOrder. column's sort order. Use 'asc', 'desc' or null.
|
|
2319
|
+
*/
|
|
2320
|
+
public sortBy(dataField: string, sortOrder: string | null): void {
|
|
2321
|
+
if (this.nativeElement.isRendered) {
|
|
2322
|
+
this.nativeElement.sortBy(dataField, sortOrder);
|
|
2323
|
+
}
|
|
2324
|
+
else
|
|
2325
|
+
{
|
|
2326
|
+
this.nativeElement.whenRendered(() => {
|
|
2327
|
+
this.nativeElement.sortBy(dataField, sortOrder);
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/** Sorts the Grid by a data field. This method will add or remove sorting, when sorting is enabled. To remove the sorting, use 'null' for the sortOrder parameter.
|
|
2333
|
+
* @param {string | number} dataField. The data field or column index of the first grid column.
|
|
2334
|
+
* @param {string | number} referenceDataField. The data field or column index of the second grid column.
|
|
2335
|
+
*/
|
|
2336
|
+
public swapColumns(dataField: string | number, referenceDataField: string | number): void {
|
|
2337
|
+
if (this.nativeElement.isRendered) {
|
|
2338
|
+
this.nativeElement.swapColumns(dataField, referenceDataField);
|
|
2339
|
+
}
|
|
2340
|
+
else
|
|
2341
|
+
{
|
|
2342
|
+
this.nativeElement.whenRendered(() => {
|
|
2343
|
+
this.nativeElement.swapColumns(dataField, referenceDataField);
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
/** Swaps two DataGrid columns.
|
|
2349
|
+
*/
|
|
2350
|
+
public saveBatchEdit(): void {
|
|
2351
|
+
if (this.nativeElement.isRendered) {
|
|
2352
|
+
this.nativeElement.saveBatchEdit();
|
|
2353
|
+
}
|
|
2354
|
+
else
|
|
2355
|
+
{
|
|
2356
|
+
this.nativeElement.whenRendered(() => {
|
|
2357
|
+
this.nativeElement.saveBatchEdit();
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
|
|
2362
|
+
/** Saves the batch edit changes. This method confirms the editing changes made by the end-user.
|
|
2363
|
+
* @param {string | number} rowId. row bound id
|
|
2364
|
+
* @param {string} dataField?. column bound data field
|
|
2365
|
+
*/
|
|
2366
|
+
public select(rowId: string | number, dataField?: string): void {
|
|
2367
|
+
if (this.nativeElement.isRendered) {
|
|
2368
|
+
this.nativeElement.select(rowId, dataField);
|
|
2369
|
+
}
|
|
2370
|
+
else
|
|
2371
|
+
{
|
|
2372
|
+
this.nativeElement.whenRendered(() => {
|
|
2373
|
+
this.nativeElement.select(rowId, dataField);
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/** Selects a row, cell or column.
|
|
2379
|
+
* @param {string | number} rowId. row bound id
|
|
2380
|
+
* @param {string} dataField. column bound data field
|
|
2381
|
+
* @param {string | number} endRowId. row bound id
|
|
2382
|
+
* @param {string} endDataField. column bound data field
|
|
2383
|
+
*/
|
|
2384
|
+
public selectRange(rowId: string | number, dataField: string, endRowId: string | number, endDataField: string): void {
|
|
2385
|
+
if (this.nativeElement.isRendered) {
|
|
2386
|
+
this.nativeElement.selectRange(rowId, dataField, endRowId, endDataField);
|
|
2387
|
+
}
|
|
2388
|
+
else
|
|
2389
|
+
{
|
|
2390
|
+
this.nativeElement.whenRendered(() => {
|
|
2391
|
+
this.nativeElement.selectRange(rowId, dataField, endRowId, endDataField);
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
/** Selects a range of rows, cells or columns. The result of the method depends on the selection configuration of the Grid.
|
|
2397
|
+
* @param {string | number} rowId. row bound id
|
|
2398
|
+
* @param {string | number} endRowId. row bound id
|
|
2399
|
+
*/
|
|
2400
|
+
public selectRowsRange(rowId: string | number, endRowId: string | number): void {
|
|
2401
|
+
if (this.nativeElement.isRendered) {
|
|
2402
|
+
this.nativeElement.selectRowsRange(rowId, endRowId);
|
|
2403
|
+
}
|
|
2404
|
+
else
|
|
2405
|
+
{
|
|
2406
|
+
this.nativeElement.whenRendered(() => {
|
|
2407
|
+
this.nativeElement.selectRowsRange(rowId, endRowId);
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
/** Selects a range of rows.
|
|
2413
|
+
* @param {(string | number)[]} rowId. Array of row ids
|
|
2414
|
+
*/
|
|
2415
|
+
public selectRows(rowId: (string | number)[]): void {
|
|
2416
|
+
if (this.nativeElement.isRendered) {
|
|
2417
|
+
this.nativeElement.selectRows(rowId);
|
|
2418
|
+
}
|
|
2419
|
+
else
|
|
2420
|
+
{
|
|
2421
|
+
this.nativeElement.whenRendered(() => {
|
|
2422
|
+
this.nativeElement.selectRows(rowId);
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
/** Selects multiple rows by their ids.
|
|
2428
|
+
*/
|
|
2429
|
+
public selectAllRows(): void {
|
|
2430
|
+
if (this.nativeElement.isRendered) {
|
|
2431
|
+
this.nativeElement.selectAllRows();
|
|
2432
|
+
}
|
|
2433
|
+
else
|
|
2434
|
+
{
|
|
2435
|
+
this.nativeElement.whenRendered(() => {
|
|
2436
|
+
this.nativeElement.selectAllRows();
|
|
2437
|
+
});
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
/** Selects all rows.
|
|
2442
|
+
* @param {number[]} rowIndex. Array of row indexes
|
|
2443
|
+
*/
|
|
2444
|
+
public selectRowsByIndex(rowIndex: number[]): void {
|
|
2445
|
+
if (this.nativeElement.isRendered) {
|
|
2446
|
+
this.nativeElement.selectRowsByIndex(rowIndex);
|
|
2447
|
+
}
|
|
2448
|
+
else
|
|
2449
|
+
{
|
|
2450
|
+
this.nativeElement.whenRendered(() => {
|
|
2451
|
+
this.nativeElement.selectRowsByIndex(rowIndex);
|
|
2452
|
+
});
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
/** Selects multiple rows by their index.
|
|
2457
|
+
* @param {string} query. Search query
|
|
2458
|
+
* @param {string} dataField?. Column data field.
|
|
2459
|
+
* @param {string} condition?. Conditions which you can use in the expressions: '=', 'EQUAL','<>', 'NOT_EQUAL', '!=', '<', 'LESS_THAN','>', 'GREATER_THAN', '<=', 'LESS_THAN_OR_EQUAL', '>=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL'
|
|
2460
|
+
*/
|
|
2461
|
+
public selectRowsByQuery(query: string, dataField?: string, condition?: string): void {
|
|
2462
|
+
if (this.nativeElement.isRendered) {
|
|
2463
|
+
this.nativeElement.selectRowsByQuery(query, dataField, condition);
|
|
2464
|
+
}
|
|
2465
|
+
else
|
|
2466
|
+
{
|
|
2467
|
+
this.nativeElement.whenRendered(() => {
|
|
2468
|
+
this.nativeElement.selectRowsByQuery(query, dataField, condition);
|
|
2469
|
+
});
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
/** Selects rows by using a query. Example: grid.selectRowsByQuery('nancy'); selects all rows that have 'nancy' value. Example 2: grid.selectRowsByQuery('nancy, davolio'); selects all rows that have 'nancy' and 'davolio' values in the same row. Example 3: grid.selectRowsByQuery(5, 'quantity', '>'); selects all rows where the value of the 'quantity' field is > 5.
|
|
2474
|
+
* @param {(string | number)[]} rowIds. Array of row ids
|
|
2475
|
+
* @param {string[]} dataFields. Array of data fields.
|
|
2476
|
+
*/
|
|
2477
|
+
public selectCells(rowIds: (string | number)[], dataFields: string[]): void {
|
|
2478
|
+
if (this.nativeElement.isRendered) {
|
|
2479
|
+
this.nativeElement.selectCells(rowIds, dataFields);
|
|
2480
|
+
}
|
|
2481
|
+
else
|
|
2482
|
+
{
|
|
2483
|
+
this.nativeElement.whenRendered(() => {
|
|
2484
|
+
this.nativeElement.selectCells(rowIds, dataFields);
|
|
2485
|
+
});
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
/** Selects multiple cells by their ids and dataFields. Example: grid.selectCells([0, 1, 2], ['firstName', 'quantity', 'date']); - selects the 'firstName', 'quantity' and 'date' cells from the first, second and third rows.
|
|
2490
|
+
* @param {string} query. Search query
|
|
2491
|
+
*/
|
|
2492
|
+
public selectCellsByQuery(query: string): void {
|
|
2493
|
+
if (this.nativeElement.isRendered) {
|
|
2494
|
+
this.nativeElement.selectCellsByQuery(query);
|
|
2495
|
+
}
|
|
2496
|
+
else
|
|
2497
|
+
{
|
|
2498
|
+
this.nativeElement.whenRendered(() => {
|
|
2499
|
+
this.nativeElement.selectCellsByQuery(query);
|
|
2500
|
+
});
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
|
|
2504
|
+
/** Selects cells by using a query. Example: grid.selectCellsByQuery('nancy'); selects all cells that have 'nancy' value. Example 2: grid.selectCellsByQuery('nancy, davolio'); selects all cells that have 'nancy' and 'davolio' values in the same row.
|
|
2505
|
+
* @param {string | number} rowId. row bound id
|
|
2506
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2507
|
+
* @param {string | number | Date | boolean} value. New Cell value.
|
|
2508
|
+
*/
|
|
2509
|
+
public setCellValue(rowId: string | number, dataField: string, value: string | number | Date | boolean): void {
|
|
2510
|
+
if (this.nativeElement.isRendered) {
|
|
2511
|
+
this.nativeElement.setCellValue(rowId, dataField, value);
|
|
2512
|
+
}
|
|
2513
|
+
else
|
|
2514
|
+
{
|
|
2515
|
+
this.nativeElement.whenRendered(() => {
|
|
2516
|
+
this.nativeElement.setCellValue(rowId, dataField, value);
|
|
2517
|
+
});
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
/** Sets a new value to a cell.
|
|
2522
|
+
* @param {GridColumn[]} columns. Columns array.
|
|
2523
|
+
*/
|
|
2524
|
+
public setColumns(columns: GridColumn[]): void {
|
|
2525
|
+
if (this.nativeElement.isRendered) {
|
|
2526
|
+
this.nativeElement.setColumns(columns);
|
|
2527
|
+
}
|
|
2528
|
+
else
|
|
2529
|
+
{
|
|
2530
|
+
this.nativeElement.whenRendered(() => {
|
|
2531
|
+
this.nativeElement.setColumns(columns);
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
/** Sets new columns to the Grid. The grid will redraw all the column headers, and then redraw all of the rows. By using 'setColumns', the grid will compare the new columns passed as argument to the method with existing columns. The Grid will automatically create new columns, keep old columns if they already exist and remove columns which are not in the 'setColumns' method argument. The benefit of that is that the state of the column like(sort, filter, width or other) will be kept, if the column exsits after the new columns are applied.
|
|
2537
|
+
* @param {string} dataField. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2538
|
+
* @param {string} propertyName. The column property's name.
|
|
2539
|
+
* @param {any} value. The new property value.
|
|
2540
|
+
*/
|
|
2541
|
+
public setColumnProperty(dataField: string, propertyName: string, value: any): void {
|
|
2542
|
+
if (this.nativeElement.isRendered) {
|
|
2543
|
+
this.nativeElement.setColumnProperty(dataField, propertyName, value);
|
|
2544
|
+
}
|
|
2545
|
+
else
|
|
2546
|
+
{
|
|
2547
|
+
this.nativeElement.whenRendered(() => {
|
|
2548
|
+
this.nativeElement.setColumnProperty(dataField, propertyName, value);
|
|
2549
|
+
});
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
/** Sets a property to a column.
|
|
2554
|
+
* @param {string | number} rowId. row bound id
|
|
2555
|
+
* @param {string} propertyName. The row property's name.
|
|
2556
|
+
* @param {any} value. The new property value.
|
|
2557
|
+
*/
|
|
2558
|
+
public setRowProperty(rowId: string | number, propertyName: string, value: any): void {
|
|
2559
|
+
if (this.nativeElement.isRendered) {
|
|
2560
|
+
this.nativeElement.setRowProperty(rowId, propertyName, value);
|
|
2561
|
+
}
|
|
2562
|
+
else
|
|
2563
|
+
{
|
|
2564
|
+
this.nativeElement.whenRendered(() => {
|
|
2565
|
+
this.nativeElement.setRowProperty(rowId, propertyName, value);
|
|
2566
|
+
});
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
/** Sets a property to a row.
|
|
2571
|
+
* @param {string | number} rowId. row bound id
|
|
2572
|
+
* @param {{background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}} rowStyle. The row style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
|
|
2573
|
+
*/
|
|
2574
|
+
public setRowStyle(rowId: string | number, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void {
|
|
2575
|
+
if (this.nativeElement.isRendered) {
|
|
2576
|
+
this.nativeElement.setRowStyle(rowId, rowStyle);
|
|
2577
|
+
}
|
|
2578
|
+
else
|
|
2579
|
+
{
|
|
2580
|
+
this.nativeElement.whenRendered(() => {
|
|
2581
|
+
this.nativeElement.setRowStyle(rowId, rowStyle);
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
/** Sets a style to a row.
|
|
2587
|
+
* @param {string | number} rowId. row bound id
|
|
2588
|
+
* @param {string} dataField. Column bound field name.
|
|
2589
|
+
* @param {{background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}} rowStyle. The cell style object. The object may have one or all of the following properties: 'background', 'color', 'fontSize', 'fontFamily', 'textDecoration', 'fontStyle', 'fontWeight'.
|
|
2590
|
+
*/
|
|
2591
|
+
public setCellStyle(rowId: string | number, dataField: string, rowStyle: {background?: string, color?: string, fontSize?: string, fontFamily?: string, textDecoration?: string, fontStyle?: string, fontWeight?: string}): void {
|
|
2592
|
+
if (this.nativeElement.isRendered) {
|
|
2593
|
+
this.nativeElement.setCellStyle(rowId, dataField, rowStyle);
|
|
2594
|
+
}
|
|
2595
|
+
else
|
|
2596
|
+
{
|
|
2597
|
+
this.nativeElement.whenRendered(() => {
|
|
2598
|
+
this.nativeElement.setCellStyle(rowId, dataField, rowStyle);
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
/** Sets a style to a row.
|
|
2604
|
+
* @param {number} value. The new scroll position
|
|
2605
|
+
*/
|
|
2606
|
+
public setVerticalScrollValue(value: number): void {
|
|
2607
|
+
if (this.nativeElement.isRendered) {
|
|
2608
|
+
this.nativeElement.setVerticalScrollValue(value);
|
|
2609
|
+
}
|
|
2610
|
+
else
|
|
2611
|
+
{
|
|
2612
|
+
this.nativeElement.whenRendered(() => {
|
|
2613
|
+
this.nativeElement.setVerticalScrollValue(value);
|
|
2614
|
+
});
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/** Sets the position of the vertical scrollbar. You can use this method in combination with the getVerticalScrollValue and getVerticalScrollMax.
|
|
2619
|
+
* @param {number} value. The new scroll position
|
|
2620
|
+
*/
|
|
2621
|
+
public setHorizontalScrollValue(value: number): void {
|
|
2622
|
+
if (this.nativeElement.isRendered) {
|
|
2623
|
+
this.nativeElement.setHorizontalScrollValue(value);
|
|
2624
|
+
}
|
|
2625
|
+
else
|
|
2626
|
+
{
|
|
2627
|
+
this.nativeElement.whenRendered(() => {
|
|
2628
|
+
this.nativeElement.setHorizontalScrollValue(value);
|
|
2629
|
+
});
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
/** Sets the position of the horizontal scrollbar. You can use this method in combination with the getHorizontalScrollValue and getHorizontalScrollMax.
|
|
2634
|
+
* @param {string | number} rowId. row bound id
|
|
2635
|
+
*/
|
|
2636
|
+
public showDetail(rowId: string | number): void {
|
|
2637
|
+
if (this.nativeElement.isRendered) {
|
|
2638
|
+
this.nativeElement.showDetail(rowId);
|
|
2639
|
+
}
|
|
2640
|
+
else
|
|
2641
|
+
{
|
|
2642
|
+
this.nativeElement.whenRendered(() => {
|
|
2643
|
+
this.nativeElement.showDetail(rowId);
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
/** Shows the Details of a Row, when row details are enabled.
|
|
2649
|
+
* @param {string | number} rowId. row bound id
|
|
2650
|
+
* @param {any} data. row data matching the data source
|
|
2651
|
+
* @param {{(row: GridRow): void}} callback?. Sets a callback function, which is called after the row is updated. The callback's argument is the updated row.
|
|
2652
|
+
*/
|
|
2653
|
+
public updateRow(rowId: string | number, data: any, callback?: {(row: GridRow): void}): void {
|
|
2654
|
+
if (this.nativeElement.isRendered) {
|
|
2655
|
+
this.nativeElement.updateRow(rowId, data, callback);
|
|
2656
|
+
}
|
|
2657
|
+
else
|
|
2658
|
+
{
|
|
2659
|
+
this.nativeElement.whenRendered(() => {
|
|
2660
|
+
this.nativeElement.updateRow(rowId, data, callback);
|
|
2661
|
+
});
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
/** Updates a row. When batch editing is enabled, the row is not saved until the batch edit is saved.
|
|
2666
|
+
* @param {string | number} rowId. row bound id
|
|
2667
|
+
* @param {string} dataField?. column bound data field. For example, if you have a column with dataField: 'firstName', set 'firstName' here.
|
|
2668
|
+
*/
|
|
2669
|
+
public unselect(rowId: string | number, dataField?: string): void {
|
|
2670
|
+
if (this.nativeElement.isRendered) {
|
|
2671
|
+
this.nativeElement.unselect(rowId, dataField);
|
|
2672
|
+
}
|
|
2673
|
+
else
|
|
2674
|
+
{
|
|
2675
|
+
this.nativeElement.whenRendered(() => {
|
|
2676
|
+
this.nativeElement.unselect(rowId, dataField);
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
/** Unselects a row, cell or column.
|
|
2682
|
+
* @param {string | number} rowId. row bound id
|
|
2683
|
+
*/
|
|
2684
|
+
public uncheckRow(rowId: string | number): void {
|
|
2685
|
+
if (this.nativeElement.isRendered) {
|
|
2686
|
+
this.nativeElement.uncheckRow(rowId);
|
|
2687
|
+
}
|
|
2688
|
+
else
|
|
2689
|
+
{
|
|
2690
|
+
this.nativeElement.whenRendered(() => {
|
|
2691
|
+
this.nativeElement.uncheckRow(rowId);
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
/** Unchecks a TreeGrid row. Sets its check-box to false.
|
|
2697
|
+
*/
|
|
2698
|
+
public uncheckAllRows(): void {
|
|
2699
|
+
if (this.nativeElement.isRendered) {
|
|
2700
|
+
this.nativeElement.uncheckAllRows();
|
|
2701
|
+
}
|
|
2702
|
+
else
|
|
2703
|
+
{
|
|
2704
|
+
this.nativeElement.whenRendered(() => {
|
|
2705
|
+
this.nativeElement.uncheckAllRows();
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
/** Unchecks all TreeGrid or Grouping rows. Sets all check-boxes to false.
|
|
2711
|
+
* @param {string | number} rowId. row bound id
|
|
2712
|
+
*/
|
|
2713
|
+
public toggleRow(rowId: string | number): void {
|
|
2714
|
+
if (this.nativeElement.isRendered) {
|
|
2715
|
+
this.nativeElement.toggleRow(rowId);
|
|
2716
|
+
}
|
|
2717
|
+
else
|
|
2718
|
+
{
|
|
2719
|
+
this.nativeElement.whenRendered(() => {
|
|
2720
|
+
this.nativeElement.toggleRow(rowId);
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
constructor(props: any) {
|
|
2728
|
+
super(props);
|
|
2729
|
+
this.componentRef = React.createRef();
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
componentDidRender(initialize: boolean) {
|
|
2733
|
+
const that = this;
|
|
2734
|
+
const props: any = {};
|
|
2735
|
+
const events: any = {};
|
|
2736
|
+
let styles: any = null;
|
|
2737
|
+
|
|
2738
|
+
const stringifyCircularJSON = (obj: any) => {
|
|
2739
|
+
const seen = new WeakSet();
|
|
2740
|
+
return JSON.stringify(obj, (k, v) => {
|
|
2741
|
+
if (v !== null && typeof v === 'object') {
|
|
2742
|
+
if (seen.has(v)) return;
|
|
2743
|
+
seen.add(v);
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
if (k === 'Smart') {
|
|
2747
|
+
return v;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
return v;
|
|
2751
|
+
});
|
|
2752
|
+
};
|
|
2753
|
+
|
|
2754
|
+
for(let prop in that.props) {
|
|
2755
|
+
if (prop === 'children') {
|
|
2756
|
+
continue;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
if (prop === 'style') {
|
|
2760
|
+
styles = that.props[prop];
|
|
2761
|
+
continue;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
if (prop.startsWith('on') && that.properties.indexOf(prop) === -1) {
|
|
2765
|
+
events[prop] = that.props[prop];
|
|
2766
|
+
continue;
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
props[prop] = that.props[prop];
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
if (initialize) {
|
|
2773
|
+
that.nativeElement = this.componentRef.current;
|
|
2774
|
+
if (that.nativeElement && !that.nativeElement.isCompleted) {
|
|
2775
|
+
that.nativeElement.reactStateProps = JSON.parse(stringifyCircularJSON(props));
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
if (initialize && that.nativeElement && that.nativeElement.isCompleted) {
|
|
2780
|
+
// return;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
|
|
2784
|
+
for(let prop in props) {
|
|
2785
|
+
if (prop === 'class' || prop === 'className') {
|
|
2786
|
+
const classNames = props[prop].trim().split(' ');
|
|
2787
|
+
|
|
2788
|
+
if (that.nativeElement._classNames) {
|
|
2789
|
+
const oldClassNames = that.nativeElement._classNames;
|
|
2790
|
+
for(let className in oldClassNames) {
|
|
2791
|
+
if (that.nativeElement.classList.contains(oldClassNames[className]) && oldClassNames[className] !== "") {
|
|
2792
|
+
that.nativeElement.classList.remove(oldClassNames[className]);
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
that.nativeElement._classNames = classNames;
|
|
2798
|
+
|
|
2799
|
+
for(let className in classNames) {
|
|
2800
|
+
if (!that.nativeElement.classList.contains(classNames[className]) && classNames[className] !== "") {
|
|
2801
|
+
that.nativeElement.classList.add(classNames[className]);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
continue;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
if (props[prop] !== that.nativeElement[prop]) {
|
|
2809
|
+
const normalizeProp = (str: string) => {
|
|
2810
|
+
return str.replace(/-([a-z])/g, function (g) {
|
|
2811
|
+
return g[1].toUpperCase();
|
|
2812
|
+
});
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
if (prop === 'hover' || prop === 'active' || prop === 'focus' || prop === 'selected') {
|
|
2816
|
+
that.nativeElement.setAttribute(prop, '');
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
const normalizedProp = normalizeProp(prop);
|
|
2820
|
+
|
|
2821
|
+
if (that.nativeElement[normalizedProp] === undefined) {
|
|
2822
|
+
that.nativeElement.setAttribute(prop, props[prop]);
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
if (props[prop] !== undefined) {
|
|
2826
|
+
if (typeof props[prop] === 'object' && that.nativeElement.reactStateProps && !initialize) {
|
|
2827
|
+
if (stringifyCircularJSON(props[prop]) === stringifyCircularJSON(that.nativeElement.reactStateProps[normalizedProp])) {
|
|
2828
|
+
continue;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
that.nativeElement[normalizedProp] = props[prop];
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
|
|
2838
|
+
for(let eventName in events) {
|
|
2839
|
+
that[eventName] = events[eventName];
|
|
2840
|
+
that.nativeElement[eventName.toLowerCase()] = events[eventName];
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
if (initialize) {
|
|
2844
|
+
Smart.Render();
|
|
2845
|
+
|
|
2846
|
+
if (that.onCreate) {
|
|
2847
|
+
that.onCreate();
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
that.nativeElement.whenRendered(() => {
|
|
2851
|
+
if (that.onReady) {
|
|
2852
|
+
that.onReady();
|
|
2853
|
+
}
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
// setup styles.
|
|
2858
|
+
|
|
2859
|
+
if (styles) {
|
|
2860
|
+
for(let styleName in styles) {
|
|
2861
|
+
that.nativeElement.style[styleName] = styles[styleName];
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
componentDidMount() {
|
|
2867
|
+
this.componentDidRender(true);
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
componentDidUpdate() {
|
|
2871
|
+
this.componentDidRender(false);
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
componentWillUnmount() {
|
|
2875
|
+
const that = this;
|
|
2876
|
+
|
|
2877
|
+
if (!that.nativeElement) {
|
|
2878
|
+
return;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
that.nativeElement.whenRenderedCallbacks = [];
|
|
2882
|
+
|
|
2883
|
+
for(let i = 0; i < that.eventListeners.length; i++){
|
|
2884
|
+
const eventName = that.eventListeners[i];
|
|
2885
|
+
|
|
2886
|
+
that.nativeElement.removeEventListener(eventName.substring(2).toLowerCase(), that[eventName]);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
render() {
|
|
2891
|
+
return (
|
|
2892
|
+
React.createElement("smart-grid", { ref: this.componentRef }, this.props.children)
|
|
2893
|
+
)
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
export default Grid;
|