@stonecrop/schema 0.62.2 → 0.62.4
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/schema.d.ts +6 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -362,6 +362,12 @@ export declare interface ColumnSchema {
|
|
|
362
362
|
/**
|
|
363
363
|
* Registered component name rendered inside the table cell instead of the default display.
|
|
364
364
|
* When absent, the table renders the value as plain text in a `<td>`.
|
|
365
|
+
*
|
|
366
|
+
* An app's own component receives the cell's display value as `value`, every entry of
|
|
367
|
+
* `cellComponentProps`, and the table's `store` with the cell's `rowIndex` and `colIndex`,
|
|
368
|
+
* so a cell that acts on its row can read it as `store.rows[rowIndex]`.
|
|
369
|
+
* `'ABadge'` instead receives the stored value with the column's `options` (or the badge
|
|
370
|
+
* descriptor its `format` returns), and no `store`, `rowIndex` or `colIndex`.
|
|
365
371
|
*/
|
|
366
372
|
cellComponent?: string;
|
|
367
373
|
/**
|