@gridkitjs/react 0.0.0-dev-20261119130019 → 0.0.0-dev-20261119132858
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -1
- package/dist/index.js +241 -192
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -367,7 +367,7 @@ interface EmptyTemplateContext {
|
|
|
367
367
|
* The props that name a React type, and so have no place in the
|
|
368
368
|
* framework-free `GridOptions`: columns whose templates return `ReactNode`,
|
|
369
369
|
* the pager and infinite-scroll configs whose templates do too, the empty
|
|
370
|
-
*
|
|
370
|
+
* and loading templates and the toolbar's custom entries.
|
|
371
371
|
*/
|
|
372
372
|
interface ReactRenderSlots<Row> {
|
|
373
373
|
columns?: readonly ColumnDefinition<Row>[] | undefined;
|
|
@@ -388,6 +388,12 @@ interface ReactRenderSlots<Row> {
|
|
|
388
388
|
* body blank.
|
|
389
389
|
*/
|
|
390
390
|
emptyTemplate?: ((context: EmptyTemplateContext) => ReactNode) | undefined;
|
|
391
|
+
/**
|
|
392
|
+
* Replaces the content of the overlay shown over the body while `loading`
|
|
393
|
+
* is on (`messages.loading`). Unrelated to `infiniteScroll.loadingTemplate`,
|
|
394
|
+
* the row shown while infinite scroll loads more.
|
|
395
|
+
*/
|
|
396
|
+
loadingTemplate?: (() => ReactNode) | undefined;
|
|
391
397
|
/** Draws the toolbar's custom entries — `{ type: "custom", id }` — by id. */
|
|
392
398
|
renderToolbarItem?: ((id: string) => ReactNode) | undefined;
|
|
393
399
|
}
|