UNPKG

@progress/kendo-angular-grid

Version:

Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.

47 lines (46 loc) 1.83 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Injectable } from '@angular/core'; import { isDocumentAvailable } from '@progress/kendo-angular-common'; import { append } from './common'; import * as i0 from "@angular/core"; /** * @hidden */ export class DropCueService { dom; create() { if (!isDocumentAvailable()) { return; } this.dom = document.createElement("div"); this.dom.className = 'k-grouping-dropclue'; this.hide(); } attach() { return append(this.dom); } remove() { if (this.dom && this.dom.parentElement) { document.body.removeChild(this.dom); this.dom = null; } } hide() { this.dom.style.display = "none"; } position({ left, top, height }) { this.dom.style.display = 'block'; this.dom.style.height = height + 'px'; this.dom.style.top = top + 'px'; const width = this.dom.offsetWidth / 2; this.dom.style.left = left - width + 'px'; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService, decorators: [{ type: Injectable }] });