FWorksheetFilter

GitHubEdit on GitHub
packages@univerjs/sheets-filter

APIs

getFilter

Get the filter for the current worksheet.

Signature

getFilter(): FFilter | null

Returns

  • (FFilter | null) — The interface class to handle the filter. If the worksheet does not have a filter, this method would return null.

Examples

const workbook = univerAPI.getActiveWorkbook()
const worksheet = workbook.getActiveSheet()
const filter = worksheet.getFilter()
console.log(filter, filter?.getRange().getA1Notation())

Table of Contents

Capalyze