UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

1,829 lines 70 kB
import * as jqxcore from '../../jqwidgets/jqxcore'; import * as jqxdata from '../../jqwidgets/jqxdata'; import * as jqxdataexport from '../../jqwidgets/jqxdata.export'; import * as jqxbuttons from '../../jqwidgets/jqxbuttons'; import * as jqxcheckbox from '../../jqwidgets/jqxcheckbox'; import * as jqxtooltip from '../../jqwidgets/jqxtooltip'; import * as jqxscrollbar from '../../jqwidgets/jqxscrollbar'; import * as jqxlistbox from '../../jqwidgets/jqxlistbox'; import * as jqxcombobox from '../../jqwidgets/jqxcombobox'; import * as jqxnumberinput from '../../jqwidgets/jqxnumberinput'; import * as jqxdropdownlist from '../../jqwidgets/jqxdropdownlist'; import * as jqxdatatable from '../../jqwidgets/jqxdatatable'; import * as jqxtreegrid from '../../jqwidgets/jqxtreegrid'; /** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import * as tslib_1 from "tslib"; /// <reference path="../../jqwidgets.d.ts" /> /// <reference path="../../jqwidgets.d.ts" /> import { Component, Input, Output, EventEmitter, ElementRef } from '@angular/core'; var jqxTreeGridComponent = /** @class */ (function () { function jqxTreeGridComponent(containerElement) { this.autoCreate = true; this.properties = ['altRows', 'autoRowHeight', 'aggregatesHeight', 'autoShowLoadElement', 'checkboxes', 'columnsHeight', 'columns', 'columnGroups', 'columnsResize', 'columnsReorder', 'disabled', 'editable', 'editSettings', 'exportSettings', 'enableHover', 'enableBrowserSelection', 'filterable', 'filterHeight', 'filterMode', 'height', 'hierarchicalCheckboxes', 'icons', 'incrementalSearch', 'localization', 'pagerHeight', 'pageSize', 'pageSizeOptions', 'pageable', 'pagerPosition', 'pagerMode', 'pageSizeMode', 'pagerButtonsCount', 'pagerRenderer', 'ready', 'rowDetails', 'rowDetailsRenderer', 'renderToolbar', 'renderStatusBar', 'rendering', 'rendered', 'rtl', 'source', 'sortable', 'showAggregates', 'showSubAggregates', 'showToolbar', 'showStatusbar', 'statusBarHeight', 'scrollBarSize', 'selectionMode', 'showHeader', 'theme', 'toolbarHeight', 'width', 'virtualModeCreateRecords', 'virtualModeRecordCreating']; // jqxTreeGridComponent events this.onBindingComplete = new EventEmitter(); this.onCellBeginEdit = new EventEmitter(); this.onCellEndEdit = new EventEmitter(); this.onCellValueChanged = new EventEmitter(); this.onColumnResized = new EventEmitter(); this.onColumnReordered = new EventEmitter(); this.onFilter = new EventEmitter(); this.onPageChanged = new EventEmitter(); this.onPageSizeChanged = new EventEmitter(); this.onRowClick = new EventEmitter(); this.onRowDoubleClick = new EventEmitter(); this.onRowSelect = new EventEmitter(); this.onRowUnselect = new EventEmitter(); this.onRowBeginEdit = new EventEmitter(); this.onRowEndEdit = new EventEmitter(); this.onRowExpand = new EventEmitter(); this.onRowCollapse = new EventEmitter(); this.onRowCheck = new EventEmitter(); this.onRowUncheck = new EventEmitter(); this.onSort = new EventEmitter(); this.elementRef = containerElement; } /** * @return {?} */ jqxTreeGridComponent.prototype.ngOnInit = /** * @return {?} */ function () { }; ; /** * @return {?} */ jqxTreeGridComponent.prototype.ngAfterViewInit = /** * @return {?} */ function () { /** @type {?} */ var children = JQXLite(this.elementRef.nativeElement.children).find('tr'); /** @type {?} */ var html = ''; /** @type {?} */ var options = {}; if (children.length > 0) { this.container = document.createElement('div'); html = this.elementRef.nativeElement.innerHTML; this.container.appendChild(this.elementRef.nativeElement.firstChild); this.elementRef.nativeElement.innerHTML = html; this.content = html; /** @type {?} */ var result = JQXLite.jqx.parseSourceTag(this.container); if (this['attrColumns'] !== undefined) { ; options['source'] = result.source; } else { options['source'] = result.source; options['columns'] = result.columns; } } if (this.autoCreate) { this.createComponent(options); } }; ; /** * @return {?} */ jqxTreeGridComponent.prototype.ngAfterViewChecked = /** * @return {?} */ function () { if (this.container) { if (this.content !== this.container.innerHTML) { this.content = this.container.innerHTML; /** @type {?} */ var result = JQXLite.jqx.parseSourceTag(this.container); /** @type {?} */ var columns = this.host.jqxGrid('columns'); if (columns.length === 0) { this.host.jqxGrid({ source: result.source, columns: result.columns }); } else { this.host.jqxGrid({ source: result.source }); } } } }; ; /** * @param {?} changes * @return {?} */ jqxTreeGridComponent.prototype.ngOnChanges = /** * @param {?} changes * @return {?} */ function (changes) { if (this.host) { for (var i = 0; i < this.properties.length; i++) { /** @type {?} */ var attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1); /** @type {?} */ var areEqual = false; if (this[attrName] !== undefined) { if (typeof this[attrName] === 'object') { if (this[attrName] instanceof Array) { areEqual = this.arraysEqual(this[attrName], this.host.jqxTreeGrid(this.properties[i])); } if (areEqual) { return false; } this.host.jqxTreeGrid(this.properties[i], this[attrName]); continue; } if (this[attrName] !== this.host.jqxTreeGrid(this.properties[i])) { this.host.jqxTreeGrid(this.properties[i], this[attrName]); } } } } }; /** * @param {?} attrValue * @param {?} hostValue * @return {?} */ jqxTreeGridComponent.prototype.arraysEqual = /** * @param {?} attrValue * @param {?} hostValue * @return {?} */ function (attrValue, hostValue) { if ((attrValue && !hostValue) || (!attrValue && hostValue)) { return false; } if (attrValue.length != hostValue.length) { return false; } for (var i = 0; i < attrValue.length; i++) { if (attrValue[i] !== hostValue[i]) { return false; } } return true; }; /** * @return {?} */ jqxTreeGridComponent.prototype.manageAttributes = /** * @return {?} */ function () { /** @type {?} */ var options = {}; for (var i = 0; i < this.properties.length; i++) { /** @type {?} */ var attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1); if (this[attrName] !== undefined) { options[this.properties[i]] = this[attrName]; } } return options; }; /** * @param {?} parentEl * @param {?} childEl * @return {?} */ jqxTreeGridComponent.prototype.moveClasses = /** * @param {?} parentEl * @param {?} childEl * @return {?} */ function (parentEl, childEl) { var _a; /** @type {?} */ var classes = parentEl.classList; if (classes.length > 0) { (_a = childEl.classList).add.apply(_a, tslib_1.__spread(classes)); } parentEl.className = ''; }; /** * @param {?} parentEl * @param {?} childEl * @return {?} */ jqxTreeGridComponent.prototype.moveStyles = /** * @param {?} parentEl * @param {?} childEl * @return {?} */ function (parentEl, childEl) { /** @type {?} */ var style = parentEl.style.cssText; childEl.style.cssText = style; parentEl.style.cssText = ''; }; /** * @param {?=} options * @return {?} */ jqxTreeGridComponent.prototype.createComponent = /** * @param {?=} options * @return {?} */ function (options) { if (this.host) { return; } if (options) { JQXLite.extend(options, this.manageAttributes()); } else { options = this.manageAttributes(); } this.host = JQXLite(this.elementRef.nativeElement.firstChild); this.moveClasses(this.elementRef.nativeElement, this.host[0]); this.moveStyles(this.elementRef.nativeElement, this.host[0]); this.__wireEvents__(); this.widgetObject = jqwidgets.createInstance(this.host, 'jqxTreeGrid', options); }; /** * @param {?=} options * @return {?} */ jqxTreeGridComponent.prototype.createWidget = /** * @param {?=} options * @return {?} */ function (options) { this.createComponent(options); }; /** * @return {?} */ jqxTreeGridComponent.prototype.__updateRect__ = /** * @return {?} */ function () { if (this.host) this.host.css({ width: this.attrWidth, height: this.attrHeight }); }; /** * @param {?} options * @return {?} */ jqxTreeGridComponent.prototype.setOptions = /** * @param {?} options * @return {?} */ function (options) { this.host.jqxTreeGrid('setOptions', options); }; // jqxTreeGridComponent properties // jqxTreeGridComponent properties /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.altRows = // jqxTreeGridComponent properties /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('altRows', arg); } else { return this.host.jqxTreeGrid('altRows'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.autoRowHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('autoRowHeight', arg); } else { return this.host.jqxTreeGrid('autoRowHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.aggregatesHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('aggregatesHeight', arg); } else { return this.host.jqxTreeGrid('aggregatesHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.autoShowLoadElement = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('autoShowLoadElement', arg); } else { return this.host.jqxTreeGrid('autoShowLoadElement'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.checkboxes = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('checkboxes', arg); } else { return this.host.jqxTreeGrid('checkboxes'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.columnsHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('columnsHeight', arg); } else { return this.host.jqxTreeGrid('columnsHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.columns = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('columns', arg); } else { return this.host.jqxTreeGrid('columns'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.columnGroups = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('columnGroups', arg); } else { return this.host.jqxTreeGrid('columnGroups'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.columnsResize = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('columnsResize', arg); } else { return this.host.jqxTreeGrid('columnsResize'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.columnsReorder = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('columnsReorder', arg); } else { return this.host.jqxTreeGrid('columnsReorder'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.disabled = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('disabled', arg); } else { return this.host.jqxTreeGrid('disabled'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.editable = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('editable', arg); } else { return this.host.jqxTreeGrid('editable'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.editSettings = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('editSettings', arg); } else { return this.host.jqxTreeGrid('editSettings'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.exportSettings = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('exportSettings', arg); } else { return this.host.jqxTreeGrid('exportSettings'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.enableHover = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('enableHover', arg); } else { return this.host.jqxTreeGrid('enableHover'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.enableBrowserSelection = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('enableBrowserSelection', arg); } else { return this.host.jqxTreeGrid('enableBrowserSelection'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.filterable = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('filterable', arg); } else { return this.host.jqxTreeGrid('filterable'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.filterHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('filterHeight', arg); } else { return this.host.jqxTreeGrid('filterHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.filterMode = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('filterMode', arg); } else { return this.host.jqxTreeGrid('filterMode'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.height = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('height', arg); } else { return this.host.jqxTreeGrid('height'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.hierarchicalCheckboxes = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('hierarchicalCheckboxes', arg); } else { return this.host.jqxTreeGrid('hierarchicalCheckboxes'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.icons = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('icons', arg); } else { return this.host.jqxTreeGrid('icons'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.incrementalSearch = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('incrementalSearch', arg); } else { return this.host.jqxTreeGrid('incrementalSearch'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.localization = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('localization', arg); } else { return this.host.jqxTreeGrid('localization'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pagerHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pagerHeight', arg); } else { return this.host.jqxTreeGrid('pagerHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pageSize = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pageSize', arg); } else { return this.host.jqxTreeGrid('pageSize'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pageSizeOptions = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pageSizeOptions', arg); } else { return this.host.jqxTreeGrid('pageSizeOptions'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pageable = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pageable', arg); } else { return this.host.jqxTreeGrid('pageable'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pagerPosition = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pagerPosition', arg); } else { return this.host.jqxTreeGrid('pagerPosition'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pagerMode = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pagerMode', arg); } else { return this.host.jqxTreeGrid('pagerMode'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pageSizeMode = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pageSizeMode', arg); } else { return this.host.jqxTreeGrid('pageSizeMode'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pagerButtonsCount = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pagerButtonsCount', arg); } else { return this.host.jqxTreeGrid('pagerButtonsCount'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.pagerRenderer = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('pagerRenderer', arg); } else { return this.host.jqxTreeGrid('pagerRenderer'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.ready = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('ready', arg); } else { return this.host.jqxTreeGrid('ready'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.rowDetails = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('rowDetails', arg); } else { return this.host.jqxTreeGrid('rowDetails'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.rowDetailsRenderer = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('rowDetailsRenderer', arg); } else { return this.host.jqxTreeGrid('rowDetailsRenderer'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.renderToolbar = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('renderToolbar', arg); } else { return this.host.jqxTreeGrid('renderToolbar'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.renderStatusBar = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('renderStatusBar', arg); } else { return this.host.jqxTreeGrid('renderStatusBar'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.rendering = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('rendering', arg); } else { return this.host.jqxTreeGrid('rendering'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.rendered = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('rendered', arg); } else { return this.host.jqxTreeGrid('rendered'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.rtl = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('rtl', arg); } else { return this.host.jqxTreeGrid('rtl'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.source = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('source', arg); } else { return this.host.jqxTreeGrid('source'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.sortable = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('sortable', arg); } else { return this.host.jqxTreeGrid('sortable'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.showAggregates = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('showAggregates', arg); } else { return this.host.jqxTreeGrid('showAggregates'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.showSubAggregates = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('showSubAggregates', arg); } else { return this.host.jqxTreeGrid('showSubAggregates'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.showToolbar = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('showToolbar', arg); } else { return this.host.jqxTreeGrid('showToolbar'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.showStatusbar = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('showStatusbar', arg); } else { return this.host.jqxTreeGrid('showStatusbar'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.statusBarHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('statusBarHeight', arg); } else { return this.host.jqxTreeGrid('statusBarHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.scrollBarSize = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('scrollBarSize', arg); } else { return this.host.jqxTreeGrid('scrollBarSize'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.selectionMode = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('selectionMode', arg); } else { return this.host.jqxTreeGrid('selectionMode'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.showHeader = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('showHeader', arg); } else { return this.host.jqxTreeGrid('showHeader'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.theme = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('theme', arg); } else { return this.host.jqxTreeGrid('theme'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.toolbarHeight = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('toolbarHeight', arg); } else { return this.host.jqxTreeGrid('toolbarHeight'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.width = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('width', arg); } else { return this.host.jqxTreeGrid('width'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.virtualModeCreateRecords = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('virtualModeCreateRecords', arg); } else { return this.host.jqxTreeGrid('virtualModeCreateRecords'); } }; /** * @param {?=} arg * @return {?} */ jqxTreeGridComponent.prototype.virtualModeRecordCreating = /** * @param {?=} arg * @return {?} */ function (arg) { if (this.autoCreate && !this.host) { this.createComponent(); } if (arg !== undefined) { this.host.jqxTreeGrid('virtualModeRecordCreating', arg); } else { return this.host.jqxTreeGrid('virtualModeRecordCreating'); } }; // jqxTreeGridComponent functions // jqxTreeGridComponent functions /** * @param {?} rowKey * @param {?} rowData * @param {?} rowPosition * @param {?=} parent * @return {?} */ jqxTreeGridComponent.prototype.addRow = // jqxTreeGridComponent functions /** * @param {?} rowKey * @param {?} rowData * @param {?} rowPosition * @param {?=} parent * @return {?} */ function (rowKey, rowData, rowPosition, parent) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('addRow', rowKey, rowData, rowPosition, parent); }; /** * @param {?} dataField * @param {?} filerGroup * @return {?} */ jqxTreeGridComponent.prototype.addFilter = /** * @param {?} dataField * @param {?} filerGroup * @return {?} */ function (dataField, filerGroup) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('addFilter', dataField, filerGroup); }; /** * @return {?} */ jqxTreeGridComponent.prototype.applyFilters = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('applyFilters'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.beginUpdate = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('beginUpdate'); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.beginRowEdit = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('beginRowEdit', rowKey); }; /** * @param {?} rowKey * @param {?} dataField * @return {?} */ jqxTreeGridComponent.prototype.beginCellEdit = /** * @param {?} rowKey * @param {?} dataField * @return {?} */ function (rowKey, dataField) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('beginCellEdit', rowKey, dataField); }; /** * @return {?} */ jqxTreeGridComponent.prototype.clearSelection = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('clearSelection'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.clearFilters = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('clearFilters'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.clear = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('clear'); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.checkRow = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('checkRow', rowKey); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.collapseRow = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('collapseRow', rowKey); }; /** * @return {?} */ jqxTreeGridComponent.prototype.collapseAll = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('collapseAll'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.destroy = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('destroy'); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.deleteRow = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('deleteRow', rowKey); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.expandRow = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('expandRow', rowKey); }; /** * @return {?} */ jqxTreeGridComponent.prototype.expandAll = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('expandAll'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.endUpdate = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('endUpdate'); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.ensureRowVisible = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('ensureRowVisible', rowKey); }; /** * @param {?} rowKey * @param {?=} cancelChanges * @return {?} */ jqxTreeGridComponent.prototype.endRowEdit = /** * @param {?} rowKey * @param {?=} cancelChanges * @return {?} */ function (rowKey, cancelChanges) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('endRowEdit', rowKey, cancelChanges); }; /** * @param {?} rowKey * @param {?} dataField * @param {?=} cancelChanges * @return {?} */ jqxTreeGridComponent.prototype.endCellEdit = /** * @param {?} rowKey * @param {?} dataField * @param {?=} cancelChanges * @return {?} */ function (rowKey, dataField, cancelChanges) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('endCellEdit', rowKey, dataField, cancelChanges); }; /** * @param {?} exportDataType * @return {?} */ jqxTreeGridComponent.prototype.exportData = /** * @param {?} exportDataType * @return {?} */ function (exportDataType) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('exportData', exportDataType); }; /** * @return {?} */ jqxTreeGridComponent.prototype.focus = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('focus'); }; /** * @param {?} dataField * @param {?} propertyName * @return {?} */ jqxTreeGridComponent.prototype.getColumnProperty = /** * @param {?} dataField * @param {?} propertyName * @return {?} */ function (dataField, propertyName) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getColumnProperty', dataField, propertyName); }; /** * @param {?} pageIndex * @return {?} */ jqxTreeGridComponent.prototype.goToPage = /** * @param {?} pageIndex * @return {?} */ function (pageIndex) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('goToPage', pageIndex); }; /** * @return {?} */ jqxTreeGridComponent.prototype.goToPrevPage = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('goToPrevPage'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.goToNextPage = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('goToNextPage'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.getSelection = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getSelection'); }; /** * @param {?} row * @return {?} */ jqxTreeGridComponent.prototype.getKey = /** * @param {?} row * @return {?} */ function (row) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getKey', row); }; /** * @param {?} rowKey * @return {?} */ jqxTreeGridComponent.prototype.getRow = /** * @param {?} rowKey * @return {?} */ function (rowKey) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getRow', rowKey); }; /** * @return {?} */ jqxTreeGridComponent.prototype.getRows = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getRows'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.getCheckedRows = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getCheckedRows'); }; /** * @return {?} */ jqxTreeGridComponent.prototype.getView = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getView'); }; /** * @param {?} rowKey * @param {?} dataField * @return {?} */ jqxTreeGridComponent.prototype.getCellValue = /** * @param {?} rowKey * @param {?} dataField * @return {?} */ function (rowKey, dataField) { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('getCellValue', rowKey, dataField); }; /** * @param {?} dataField * @return {?} */ jqxTreeGridComponent.prototype.hideColumn = /** * @param {?} dataField * @return {?} */ function (dataField) { if (this.autoCreate && !this.host) { this.createComponent(); } this.host.jqxTreeGrid('hideColumn', dataField); }; /** * @return {?} */ jqxTreeGridComponent.prototype.isBindingCompleted = /** * @return {?} */ function () { if (this.autoCreate && !this.host) { this.createComponent(); } return this.host.jqxTreeGrid('isBindingCom