您好,可以通过公式实现:
- var nCondition = new GC.Spread.Sheets.ConditionalFormatting.Condition(GC.Spread.Sheets.ConditionalFormatting.ConditionType.formulaCondition , {
- formula: "=AND(YEAR(A1)=YEAR(TODAY()), A1<=TODAY())",
- customValueType: GC.Spread.Sheets.ConditionalFormatting.CustomValueType.formula
- });
- filter.addFilterItem(0, nCondition);
- filter.filter(0);
复制代码 具体可以查看附件中的demo
筛选前:
筛选后:
|
|