FWorksheetFilter
| packages | @univerjs/sheets-filter |
|---|
APIs
getFilter
Get the filter for the current worksheet.
Signature
getFilter(): FFilter | nullReturns
- (
FFilter | null) — The interface class to handle the filter. If the worksheet does not have a filter, this method would returnnull.
Examples
const workbook = univerAPI.getActiveWorkbook()
const worksheet = workbook.getActiveSheet()
const filter = worksheet.getFilter()
console.log(filter, filter?.getRange().getA1Notation())