From f108544c4a10f8f9d7c28fe305be540d0335dc5a Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Thu, 22 Dec 2022 14:22:48 -0600 Subject: [PATCH] Add isFilterable to display.grid --- src/examples/basic/grid.ts | 1 + src/ioSchema.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/examples/basic/grid.ts b/src/examples/basic/grid.ts index ce48690..b817bc9 100644 --- a/src/examples/basic/grid.ts +++ b/src/examples/basic/grid.ts @@ -136,6 +136,7 @@ export const only_images: IntervalActionHandler = async io => { aspectRatio: 4 / 3, }, }), + isFilterable: false, }) } diff --git a/src/ioSchema.ts b/src/ioSchema.ts index bf2e040..b5050ec 100644 --- a/src/ioSchema.ts +++ b/src/ioSchema.ts @@ -446,6 +446,7 @@ const DISPLAY_SCHEMA = { idealColumnWidth: z.optional(z.number()), defaultPageSize: z.number().optional(), helpText: z.optional(z.string()), + isFilterable: z.boolean().default(true), //== private props totalRecords: z.optional(z.number().int()), isAsync: z.optional(z.boolean().default(false)),