Skip to content

Commit 3e4690f

Browse files
authored
Remove mis-mapped sample (#351)
1 parent d4bf51b commit 3e4690f

File tree

3 files changed

+1
-32
lines changed

3 files changed

+1
-32
lines changed

docs/docs-ref-autogen/excel/excelscript/excelscript.filtercriteria.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,6 @@ properties:
7575
content: 'criterion2?: string;'
7676
return:
7777
type: string
78-
description: |-
79-
80-
81-
#### Examples
82-
83-
```TypeScript
84-
/**
85-
* This script applies a filter to a table so that it only shows rows with "Needs Review" in the "Type" column.
86-
*/
87-
function main(workbook: ExcelScript.Workbook) {
88-
// Get the first table in the workbook.
89-
const table = workbook.getTables()[0];
90-
91-
// Apply the filter to the "Type" column.
92-
const typeColumn = table.getColumnByName("Type");
93-
typeColumn.getFilter().applyValuesFilter(["Needs Review"]);
94-
}
95-
```
9678
- name: dynamicCriteria
9779
uid: 'ExcelScript!ExcelScript.FilterCriteria#dynamicCriteria:member'
9880
package: ExcelScript!

docs/sample-scripts/excel-scripts.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,19 +2399,6 @@
23992399
};
24002400
currentSheet.getAutoFilter().apply(dataRange, 2, filterCriteria);
24012401
}
2402-
'ExcelScript.FilterCriteria#criterion2:member':
2403-
- |-
2404-
/**
2405-
* This script applies a filter to a table so that it only shows rows with "Needs Review" in the "Type" column.
2406-
*/
2407-
function main(workbook: ExcelScript.Workbook) {
2408-
// Get the first table in the workbook.
2409-
const table = workbook.getTables()[0];
2410-
2411-
// Apply the filter to the "Type" column.
2412-
const typeColumn = table.getColumnByName("Type");
2413-
typeColumn.getFilter().applyValuesFilter(["Needs Review"]);
2414-
}
24152402
'ExcelScript.FilterDatetime:interface':
24162403
- |-
24172404
/**

generate-docs/API Coverage Report.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ ExcelScript.Filter,"getCriteria()",Method,Poor,false
15841584
ExcelScript.FilterCriteria,N/A,Class,Fine,false
15851585
ExcelScript.FilterCriteria,"color",Property,Good,false
15861586
ExcelScript.FilterCriteria,"criterion1",Property,Good,true
1587-
ExcelScript.FilterCriteria,"criterion2",Property,Good,true
1587+
ExcelScript.FilterCriteria,"criterion2",Property,Good,false
15881588
ExcelScript.FilterCriteria,"dynamicCriteria",Property,Good,false
15891589
ExcelScript.FilterCriteria,"filterOn",Property,Fine,false
15901590
ExcelScript.FilterCriteria,"icon",Property,Good,false

0 commit comments

Comments
 (0)