( gridRange *sheets.GridRange, conditionType string, values []*sheets.ConditionValue, format *sheets.CellFormat, index int64, )
| 52 | } |
| 53 | |
| 54 | func BuildAddRequest( |
| 55 | gridRange *sheets.GridRange, |
| 56 | conditionType string, |
| 57 | values []*sheets.ConditionValue, |
| 58 | format *sheets.CellFormat, |
| 59 | index int64, |
| 60 | ) *sheets.Request { |
| 61 | return &sheets.Request{ |
| 62 | AddConditionalFormatRule: &sheets.AddConditionalFormatRuleRequest{ |
| 63 | Rule: &sheets.ConditionalFormatRule{ |
| 64 | BooleanRule: &sheets.BooleanRule{ |
| 65 | Condition: &sheets.BooleanCondition{ |
| 66 | Type: conditionType, |
| 67 | Values: values, |
| 68 | }, |
| 69 | Format: format, |
| 70 | }, |
| 71 | Ranges: []*sheets.GridRange{gridRange}, |
| 72 | }, |
| 73 | Index: index, |
| 74 | }, |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func RuleItems(spreadsheet *sheets.Spreadsheet, onlySheet string) []RuleItem { |
| 79 | items := make([]RuleItem, 0) |
no outgoing calls