Convenience component for local object rows. Bind grid to access the live Grid.
Owns a sheet derived from columns and defaultRows. Bind grid for imperative access; it clears on reset or unmount.
- Package
@sheetwrite/svelte
- Source
packages/svelte/src/Sheetwrite.svelte.d.ts#L7
Declaration
internals: ComponentInternals,
props: SheetwritePropstype SheetwriteProps<Row extends Record<string, CellScalar>> = Omit<
SheetwriteGridProps,
"workbook" | "data" | "datasource" | "height" | "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};type SheetwriteProps<Row extends Record<string, CellScalar>> = Omit<
SheetwriteGridProps,
"workbook" | "data" | "datasource" | "height" | "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};type SheetwriteProps<
Row extends Record<
string,
CellScalar
>,
> = Omit<
SheetwriteGridProps,
| "workbook"
| "data"
| "datasource"
| "height"
| "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};Simple framework adapter props for columns and default row objects.API reference →<Record<string, CellScalartype CellScalar = string | number | boolean | null;type CellScalar = string | number | boolean | null;type CellScalar =
| string
| number
| boolean
| null;A scalar that can be displayed directly.API reference →>>, $on?(type: string, callback: (e: any) => void): () => void;
$set?(props: Partial<SheetwritePropstype SheetwriteProps<Row extends Record<string, CellScalar>> = Omit<
SheetwriteGridProps,
"workbook" | "data" | "datasource" | "height" | "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};type SheetwriteProps<Row extends Record<string, CellScalar>> = Omit<
SheetwriteGridProps,
"workbook" | "data" | "datasource" | "height" | "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};type SheetwriteProps<
Row extends Record<
string,
CellScalar
>,
> = Omit<
SheetwriteGridProps,
| "workbook"
| "data"
| "datasource"
| "height"
| "fill"
> &
GridSizeProps & {
columns: readonly SimpleColumn<Row>[];
defaultRows: readonly Row[];
sheetName?: string;
};Simple framework adapter props for columns and default row objects.API reference →<Record<string, CellScalartype CellScalar = string | number | boolean | null;type CellScalar = string | number | boolean | null;type CellScalar =
| string
| number
| boolean
| null;A scalar that can be displayed directly.API reference →>>>): void;