Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: add defaults to table args (#5263)

Myles Scolnick7d2f9412d023
diff --git a/frontend/src/plugins/impl/DataTablePlugin.tsx b/frontend/src/plugins/impl/DataTablePlugin.tsx
index 3f62380b82..214591b67e 100644
--- a/frontend/src/plugins/impl/DataTablePlugin.tsx
+++ b/frontend/src/plugins/impl/DataTablePlugin.tsx
@@ -215,14 +215,14 @@ export const DataTablePlugin = createPlugin<S>("marimo-table")
)
.nullish(),
totalColumns: z.number(),
- maxColumns: z.union([z.number(), z.literal("all")]),
+ maxColumns: z.union([z.number(), z.literal("all")]).default("all"),
hasStableRowId: z.boolean().default(false),
cellStyles: z.record(z.record(z.object({}).passthrough())).optional(),
// Whether to load the data lazily.
- lazy: z.boolean(),
+ lazy: z.boolean().default(false),
// If lazy, this will preload the first page of data
// without user confirmation.
- preload: z.boolean(),
+ preload: z.boolean().default(false),
}),
)
.withFunctions<DataTableFunctions>({