Class $.wijmo.wijspread.DateOccurringRule
Extends
$.wijmo.wijspread.ConditionRuleBase.
Constructor Attributes | Constructor Name and Description |
---|---|
$.wijmo.wijspread.DateOccurringRule(type, style)
Creates a new DateOccurringRule with the specified type and style.
|
- Fields borrowed from class $.wijmo.wijspread.ConditionRuleBase:
- condition, ranges, style
Method Attributes | Method Name and Description |
---|---|
Creates conditions for the rule.
|
|
Resets the rule.
|
- Methods borrowed from class $.wijmo.wijspread.ConditionRuleBase:
- contains, createCondition, evaluate, getExpected, initCondition, reset
Class Detail
$.wijmo.wijspread.DateOccurringRule(type, style)
Creates a new DateOccurringRule with the specified type and style.
var style = new $.wijmo.wijspread.Style(); style.backColor = "red"; var rule = new $.wijmo.wijspread.DateOccurringRule($.wijmo.wijspread.DateOccurringType.NextWeek,style); rule.ranges=[new $.wijmo.wijspread.Range(0,0,10,1)]; sheet.getConditionalFormats().addRule(rule); var d = new Date(); sheet.setValue(0, 0, d); sheet.setValue(1, 0, new Date(d.setDate(d.getDate()+1))); sheet.setValue(2, 0, new Date(d.setDate(d.getDate()+5))); sheet.setValue(3, 0,new Date(d.setDate(d.getDate()+6))); sheet.setValue(4, 0,new Date(d.setDate(d.getDate()+7))); sheet.setValue(5, 0, new Date(d.setDate(d.getDate()+8)));
- Parameters:
- type
- The rule type.
- style
- The cell style.
Method Detail
DateOccurringRule#createCondition()
Creates conditions for the rule.
DateOccurringRule#reset()
Resets the rule.