-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support POI 3.16. Add/update documentation
- Loading branch information
1 parent
8756205
commit fbab0ec
Showing
9 changed files
with
112 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[[merging]] | ||
== Merging Cells | ||
|
||
This module supports merging cells with an easy to use API. | ||
|
||
[source,groovy] | ||
---- | ||
row { | ||
merge { | ||
//Anything you can do inside row directly | ||
cell("Foo") | ||
cell("Bar") | ||
} | ||
} | ||
---- | ||
|
||
You can also apply default styling to the merged cells | ||
|
||
[source,groovy] | ||
---- | ||
row { | ||
merge(font: Font.BOLD) { | ||
//Anything you can do inside row directly | ||
cell("Foo") | ||
cell("Bar") | ||
} | ||
} | ||
---- | ||
|
||
If you only have one piece of data, but want that data to account for multiple columns, you can pass a number to the merge method. | ||
|
||
[source,groovy] | ||
---- | ||
row { | ||
//The value "Foo" will span 3 columns | ||
merge("Foo", 3) | ||
} | ||
---- | ||
|
||
You can also apply default styling to the merged cells created in that way | ||
|
||
[source,groovy] | ||
---- | ||
row { | ||
merge("Foo", 3, [font: Font.BOLD]) | ||
} | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters