diff options
author | xuri <xuri.me@gmail.com> | 2021-07-16 00:00:50 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-07-16 00:00:50 +0800 |
commit | ec0ca8ba50a3a59048c51e360301230f45dfc978 (patch) | |
tree | 114f43568f5231812af869ed965fe3b0789844f8 /xmlWorksheet.go | |
parent | fbcfdeae90b7e755a70c6ceef27346c7d0552937 (diff) |
This closes #883, fix missing pivot attribute of conditional formatting
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r-- | xmlWorksheet.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 82ac395..d280bfd 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -528,6 +528,7 @@ type xlsxPhoneticPr struct { // applied to a particular cell or range. type xlsxConditionalFormatting struct { XMLName xml.Name `xml:"conditionalFormatting"` + Pivot bool `xml:"pivot,attr,omitempty"` SQRef string `xml:"sqref,attr,omitempty"` CfRule []*xlsxCfRule `xml:"cfRule"` } @@ -535,19 +536,19 @@ type xlsxConditionalFormatting struct { // xlsxCfRule (Conditional Formatting Rule) represents a description of a // conditional formatting rule. type xlsxCfRule struct { - AboveAverage *bool `xml:"aboveAverage,attr"` - Bottom bool `xml:"bottom,attr,omitempty"` + Type string `xml:"type,attr,omitempty"` DxfID *int `xml:"dxfId,attr"` - EqualAverage bool `xml:"equalAverage,attr,omitempty"` - Operator string `xml:"operator,attr,omitempty"` - Percent bool `xml:"percent,attr,omitempty"` Priority int `xml:"priority,attr,omitempty"` - Rank int `xml:"rank,attr,omitempty"` - StdDev int `xml:"stdDev,attr,omitempty"` StopIfTrue bool `xml:"stopIfTrue,attr,omitempty"` + AboveAverage *bool `xml:"aboveAverage,attr"` + Percent bool `xml:"percent,attr,omitempty"` + Bottom bool `xml:"bottom,attr,omitempty"` + Operator string `xml:"operator,attr,omitempty"` Text string `xml:"text,attr,omitempty"` TimePeriod string `xml:"timePeriod,attr,omitempty"` - Type string `xml:"type,attr,omitempty"` + Rank int `xml:"rank,attr,omitempty"` + StdDev int `xml:"stdDev,attr,omitempty"` + EqualAverage bool `xml:"equalAverage,attr,omitempty"` Formula []string `xml:"formula,omitempty"` ColorScale *xlsxColorScale `xml:"colorScale"` DataBar *xlsxDataBar `xml:"dataBar"` |