You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-48Lines changed: 34 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,55 +18,41 @@ A new branch will be spawned for every upgrade of base line (if it ever happens
18
18
19
19
What are the new features?
20
20
-----------
21
-
1.7-2.0.0-4:
22
-
- All existing ExcelFormat constructors now handle formatters as well:
21
+
1.7-2.0.0-5:
22
+
- Back compatibility with original v1.6 in general but...
23
+
- I see no reason why column autosizing is not turned-on by default: it perfectly resizes small columns, and doesn't resize large columns too much. So it's turned-on by default now.
24
+
- multiple sheets (only Excel implemented for now):
23
25
```groovy
24
-
new ExcelFormat(..., { domain, value -> ... })
25
-
```
26
-
1.7-2.0.0-3:
27
-
- Chained header and column formatting, like
28
-
```groovy
29
-
def cellFormat = (new ExcelFormat()).TAHOMA().bold().noBold().struckout().VIOLET().italic().pointSize(10).wrapText().CENTRE().TOP().MINUS_45().backColor(Colour.AQUA).MIDDLE()
30
-
```
31
-
It is possible to set that format for all headers ``"header.format":format`` and/or individually ``"header.formats": [1:column1headerFormat,5:column5headerFormat]``
32
-
- Change column size individually ``"column.widths": [null, 40]`` - here we set it only for second one, the rest will be autosized.
33
-
- format can handle cell value type (currency bundles text formatter as well!):
34
-
```groovy
35
-
def textFormat = new ExcelFormat()
36
-
def currencyFormat = new ExcelFormat(NumberFormats.ACCOUNTING_FLOAT)
37
-
def dateTimeFormat = new ExcelFormat(DateFormats.FORMAT9)
38
-
dateTimeFormat.setFormatter { domain, value -> ... }
39
-
```
40
-
- new interface to handle multiple sheets (only Excel implemented for now):
- I see no reason why column autosizing is not turned-on by default: it perfectly resizes small columns, and doesn't resize large columns too much. So it's on by default now. To disable it set ``Map parameters=['column.width.autoSize':false]``
55
-
- supports column formating. Here is a quick example how to assign "currency" type to a column:
42
+
- Columns can be fancy and handle native formating. Here are some more examples:
56
43
```groovy
57
-
Map labels = ['paymentAmt':'Payment Amount']
58
-
List fields = ['paymentAmt']
59
-
Map parameters = ['column.formats': ['paymentAmt': new WritableCellFormat(NumberFormats.ACCOUNTING_FLOAT)]]
60
-
def formatters = ['paymentAmt' : { domain, value ->
def currencyFormat = new ExcelFormat(NumberFormats.ACCOUNTING_FLOAT)
46
+
def dateTimeFormat = new ExcelFormat(DateFormats.FORMAT9)
47
+
dateTimeFormat.setFormatter { domain, value -> ... }
48
+
def sameInOneLine = new ExcelFormat(DateFormats.FORMAT9, { domain, value -> ... })
49
+
def fancyFormat = (new ExcelFormat()).TAHOMA().bold().noBold().struckout().VIOLET().italic().pointSize(10).wrapText().CENTRE().TOP().MINUS_45().backColor(Colour.AQUA).MIDDLE()
69
50
```
51
+
It is possible to set that format for all headers ``"header.format":format`` and/or individually ``"header.formats": [1:column1headerFormat,5:column5headerFormat]``
52
+
- Change column size individually ``"column.widths": [null, 40]`` - here we set it only for second one, the rest will be autosized.
53
+
- To disable autosizing set ``'column.width.autoSize':false``
54
+
- Using Log4j
55
+
70
56
1.7-2.0.0-1:
71
57
- initial merge of 1.7 and 2.0.0
72
58
- bug: Column autosize applies on size() of rows instead of columns [#28](https://github.com/gpc/export/pull/28)
@@ -85,47 +71,47 @@ cancel once you see it... or wait for build to fail due to missing plugin.
85
71
- Stop grails;
86
72
- Add new plugin to your BuildConfig.groovy normally:
87
73
```groovy
88
-
compile (':export:1.7-2.0.0-4') {
74
+
compile (':export:1.7-2.0.0-5') {
89
75
excludes 'bcprov-jdk14', 'bcmail-jdk14' // to support birt-report:4.3 dependency hell
90
76
}
91
77
```
92
-
- Download and run "install_plugin_export.bat" [from latest release](https://github.com/SquareGearsLogic/export/releases/tag/1.7-2.0.0-4);
78
+
- Download and run "install_plugin_export.bat" [from latest release](https://github.com/SquareGearsLogic/export/releases/tag/1.7-2.0.0-5);
93
79
- Run grails. It may prompt you for plugin upgrade - say yes.
94
80
95
81
**Option 2)** manually install zip into local maven repository and install plugin from there, like you normally do:
96
82
97
-
- Get .zip and .pom files [from latest release](https://github.com/SquareGearsLogic/export/releases/tag/1.7-2.0.0-4)
83
+
- Get .zip and .pom files [from latest release](https://github.com/SquareGearsLogic/export/releases/tag/1.7-2.0.0-5)
98
84
- If you running Grails < v2.3 you can use
99
85
```
100
86
grails install-plugin
101
87
```
102
88
103
89
If you running Grails between v2.3 and 3.0, you should use maven itself:
0 commit comments