angular-wrapper-kendo-ui
Version:
A simple library to wrapper Telerik Kendo UI jQuery controls in Angular 6 components.
2 lines • 2.95 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-ui"),require("jquery")):"function"==typeof define&&define.amd?define("angular-wrapper-kendo-ui",["exports","@angular/core","@progress/kendo-ui","jquery"],t):t((e=e||self)["angular-wrapper-kendo-ui"]={},e.ng.core)}(this,(function(e,t){"use strict";var r=function(){function e(e,t){this.zone=e,this.elementRef=t}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this,t=kendo.jQuery(this.treelistEl.nativeElement);this.zone.runOutsideAngular((function(){e._treelist=t.kendoTreeList(e.options).data("kendoTreeList")}))},e.prototype.ngOnDestroy=function(){kendo.destroy(this.elementRef.nativeElement)},Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._treelist&&this._treelist.dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._treelist&&this._treelist.content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thead",{get:function(){return this._treelist&&this._treelist.thead},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tbody",{get:function(){return this._treelist&&this._treelist.tbody},enumerable:!0,configurable:!0}),e.prototype.addRow=function(e){return void 0===e&&(e=""),this._treelist&&this._treelist.addRow(e)},e.prototype.editRow=function(e){if(e){var t=e instanceof jQuery?e:kendo.jQuery(e);return this._treelist&&this._treelist.editRow(t)}},e.prototype.removeRow=function(e){if(e){var t=e instanceof jQuery?e:kendo.jQuery(e);return this._treelist&&this._treelist.removeRow(t)}},e.prototype.expand=function(e){if(e){var t=e instanceof jQuery?e:kendo.jQuery(e);return this._treelist&&this._treelist.expand(t)}},e.prototype.select=function(e){if(e){var t=e instanceof jQuery?e:kendo.jQuery(e);return this._treelist&&this._treelist.select(t)}},e.prototype.itemFor=function(e){if(e)return this._treelist&&this._treelist.itemFor(e)},e.prototype.dataItem=function(e){if(e){var t=e instanceof jQuery?e:kendo.jQuery(e);return this._treelist&&this._treelist.dataItem(t)}},e.prototype.clearSelection=function(){return this._treelist&&this._treelist.clearSelection()},e.decorators=[{type:t.Component,args:[{selector:"ng-treelist",template:'<div id="treelist" #treelist></div>',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}]}],e.ctorParameters=function(){return[{type:t.NgZone},{type:t.ElementRef}]},e.propDecorators={options:[{type:t.Input}],treelistEl:[{type:t.ViewChild,args:["treelist",{static:!1}]}]},e}();var n=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{imports:[],declarations:[r],exports:[r]}]}],e}();e.AngularWrapperKendoUiModule=n,e.TreeListComponent=r,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=angular-wrapper-kendo-ui.umd.min.js.map