diff --git a/src/examples/basic/table.ts b/src/examples/basic/table.ts index 628c17b..eeff1e6 100644 --- a/src/examples/basic/table.ts +++ b/src/examples/basic/table.ts @@ -35,6 +35,8 @@ export const no_pagination: IntervalActionHandler = async io => { await io.display.table('Display users', { data, defaultPageSize: 50, + isFilterable: false, + isSortable: false, }) } diff --git a/src/ioSchema.ts b/src/ioSchema.ts index e93c357..bf2e040 100644 --- a/src/ioSchema.ts +++ b/src/ioSchema.ts @@ -464,6 +464,8 @@ const DISPLAY_SCHEMA = { data: z.array(internalTableRow), orientation: z.enum(['vertical', 'horizontal']).default('horizontal'), defaultPageSize: z.number().optional(), + isSortable: z.boolean().default(true), + isFilterable: z.boolean().default(true), //== private props // added in v0.28, optional until required by all active versions totalRecords: z.optional(z.number().int()), @@ -699,6 +701,8 @@ const INPUT_SCHEMA = { minSelections: z.optional(z.number().int().min(0)), maxSelections: z.optional(z.number().positive().int()), disabled: z.optional(z.boolean().default(false)), + isSortable: z.optional(z.boolean().default(true)), + isFilterable: z.optional(z.boolean().default(true)), //== private props // added in v0.28, optional until required by all active versions totalRecords: z.optional(z.number().int()),