slickgrid
Advanced tools
Comparing version 5.5.3 to 5.5.4
import type { Column, FormatterResultWithHtml, FormatterResultWithText } from './index'; | ||
import type { SlickGrid } from '../slick.grid'; | ||
export declare type Formatter<T = any> = (row: number, cell: number, value: any, columnDef: Column<T>, dataContext: T, grid: SlickGrid) => string | HTMLElement | FormatterResultWithHtml | FormatterResultWithText; | ||
export declare type Formatter<T = any> = (row: number, cell: number, value: any, columnDef: Column<T>, dataContext: T, grid: SlickGrid) => string | HTMLElement | DocumentFragment | FormatterResultWithHtml | FormatterResultWithText; | ||
//# sourceMappingURL=formatter.interface.d.ts.map |
@@ -13,3 +13,3 @@ import type SortableInstance from 'sortablejs'; | ||
* | ||
* SlickGrid v5.5.3 | ||
* SlickGrid v5.5.4 | ||
* | ||
@@ -291,3 +291,3 @@ * NOTES: | ||
* Apply HTML code by 3 different ways depending on what is provided as input and what options are enabled. | ||
* 1. value is an HTMLElement, then simply append the HTML to the target element. | ||
* 1. value is an HTMLElement or DocumentFragment, then first empty the target and simply append the HTML to the target element. | ||
* 2. value is string and `enableHtmlRendering` is enabled, then use `target.innerHTML = value;` | ||
@@ -298,3 +298,3 @@ * 3. value is string and `enableHtmlRendering` is disabled, then use `target.textContent = value;` | ||
*/ | ||
applyHtmlCode(target: HTMLElement, val: string | HTMLElement | DocumentFragment): void; | ||
applyHtmlCode(target: HTMLElement, val: string | HTMLElement | DocumentFragment, emptyTarget?: boolean): void; | ||
protected initialize(): void; | ||
@@ -621,3 +621,3 @@ protected finishInitialization(): void; | ||
/** Apply a Formatter Result to a Cell DOM Node */ | ||
applyFormatResultToCellNode(formatterResult: FormatterResultWithHtml | FormatterResultWithText | string | HTMLElement, cellNode: HTMLDivElement, suppressRemove?: boolean): void; | ||
applyFormatResultToCellNode(formatterResult: FormatterResultWithHtml | FormatterResultWithText | string | HTMLElement | DocumentFragment, cellNode: HTMLDivElement, suppressRemove?: boolean): void; | ||
/** | ||
@@ -624,0 +624,0 @@ * Update a specific cell by its row and column index |
{ | ||
"name": "slickgrid", | ||
"version": "5.5.3", | ||
"version": "5.5.4", | ||
"description": "A lightning fast JavaScript grid/spreadsheet", | ||
@@ -5,0 +5,0 @@ "main": "./dist/browser/index.js", |
import type { Column, FormatterResultWithHtml, FormatterResultWithText } from './index'; | ||
import type { SlickGrid } from '../slick.grid'; | ||
export declare type Formatter<T = any> = (row: number, cell: number, value: any, columnDef: Column<T>, dataContext: T, grid: SlickGrid) => string | HTMLElement | FormatterResultWithHtml | FormatterResultWithText; | ||
export declare type Formatter<T = any> = (row: number, cell: number, value: any, columnDef: Column<T>, dataContext: T, grid: SlickGrid) => string | HTMLElement | DocumentFragment | FormatterResultWithHtml | FormatterResultWithText; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6925952
58021