diff --git a/src/examples/basic/table.ts b/src/examples/basic/table.ts index edb8e66..a241ba1 100644 --- a/src/examples/basic/table.ts +++ b/src/examples/basic/table.ts @@ -35,8 +35,8 @@ export const no_pagination: IntervalActionHandler = async io => { await io.display.table('Display users', { data, defaultPageSize: 50, - canFilter: false, - canSort: false, + isFilterable: false, + isSortable: false, }) } diff --git a/src/ioSchema.ts b/src/ioSchema.ts index ea198a4..328f863 100644 --- a/src/ioSchema.ts +++ b/src/ioSchema.ts @@ -420,8 +420,8 @@ const DISPLAY_SCHEMA = { data: z.array(internalTableRow), orientation: z.enum(['vertical', 'horizontal']).default('horizontal'), defaultPageSize: z.number().optional(), - canSort: z.boolean().default(true), - canFilter: z.boolean().default(true), + 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()), @@ -657,8 +657,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)), - canSort: z.optional(z.boolean().default(true)), - canFilter: z.optional(z.boolean().default(true)), + 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()),