@univerjssheets-filterindexvariablesSetsheetsfilterrangemutation

@univerjs/sheets-filter v0.5.0-beta.1Docs


Variable: SetSheetsFilterRangeMutation

const SetSheetsFilterRangeMutation: IMutation<ISetSheetsFilterRangeMutationParams>;

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.

Defined in

sheets-filter/src/commands/mutations/sheets-filter.mutation.ts:39