UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

27 lines (26 loc) 1.22 kB
import type { AgGridCommon } from '../interfaces/iCommon'; import type { IComponent } from '../interfaces/iComponent'; import { Component } from '../widgets/component'; import type { DragAndDropIcon, DragSource } from './dragAndDropService'; export interface IDragAndDropImageParams<TData = any, TContext = any> extends AgGridCommon<TData, TContext> { dragSource: DragSource; } export interface IDragAndDropImage { setIcon(iconName: string | null, shake: boolean): void; setLabel(label: string): void; } export interface IDragAndDropImageComponent<TData = any, TContext = any, TParams extends Readonly<IDragAndDropImageParams<TData, TContext>> = IDragAndDropImageParams<TData, TContext>> extends IComponent<TParams>, IDragAndDropImage { } export declare class DragAndDropImageComponent extends Component implements IDragAndDropImageComponent<any, any> { private dragSource; private readonly eIcon; private readonly eLabel; private readonly eGhost; private dropIconMap; constructor(); postConstruct(): void; init(params: IDragAndDropImageParams): void; destroy(): void; setIcon(iconName: DragAndDropIcon | null, shake: boolean): void; setLabel(label: string): void; }