ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
27 lines (26 loc) • 1.41 kB
TypeScript
import { ICellRendererComp } from '../rendering/cellRenderers/iCellRenderer';
import { Promise } from './promise';
/** @deprecated */
export declare function getNameOfClass(theClass: any): string;
export declare function findLineByLeastSquares(values: number[]): any[];
/**
* Converts a CSS object into string
* @param {Object} stylesToUse an object eg: {color: 'black', top: '25px'}
* @return {string} A string like "color: black; top: 25px;" for html
*/
export declare function cssStyleObjectToMarkup(stylesToUse: any): string;
/**
* Displays a message to the browser. this is useful in iPad, where you can't easily see the console.
* so the javascript code can use this to give feedback. this is NOT intended to be called in production.
* it is intended the ag-Grid developer calls this to troubleshoot, but then takes out the calls before
* checking in.
* @param {string} msg
*/
export declare function message(msg: string): void;
/**
* cell renderers are used in a few places. they bind to dom slightly differently to other cell renderes as they
* can return back strings (instead of html elemnt) in the getGui() method. common code placed here to handle that.
* @param {Promise<ICellRendererComp>} cellRendererPromise
* @param {HTMLElement} eTarget
*/
export declare function bindCellRendererToHtmlElement(cellRendererPromise: Promise<ICellRendererComp>, eTarget: HTMLElement): void;