@univerjssheets-filterindexvariablesSetsheetsfilterrangemutation

@univerjs/sheets-filter v0.5.4


Variable: SetSheetsFilterRangeMutation

const SetSheetsFilterRangeMutation: IMutation<ISetSheetsFilterRangeMutationParams>;

Defined in: sheets-filter/src/commands/mutations/sheets-filter.mutation.ts:40

A CommandType.MUTATION to set filter range in a Worksheet. If no FilterModel exists, a new FilterModel will be created.

Since there could only be a filter on a worksheet, when you want to update the range, you don’t necessarily need to remove the filter first, you can just execute this mutation.