Skip to content

Commit 14664d3

Browse files
committed
Update changelog and documentation
1 parent eb7f0a3 commit 14664d3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This is the changelog between releases of PHPWord. Releases are listed in revers
1616
- Settings: Ability to use PCLZip as alternative to ZipArchive - @bskrtich @ivanlanin GH-106 GH-140 GH-185
1717
- Template: Ability to find & replace variables in headers & footers - @dgudgeon GH-190
1818
- Template: Ability to clone & delete block of text using `cloneBlock` and `deleteBlock` - @diego-vieira GH-191
19+
- TOC: Ability to have two or more TOC in one document and to set min and max depth for TOC - @Pyreweb GH-189
1920

2021
### Bugfixes
2122

docs/elements.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,14 @@ Your TOC can only be generated if you have add at least one title (See
316316

317317
.. code-block:: php
318318
319-
$section->addTOC([$fontStyle], [$tocStyle]);
319+
$section->addTOC([$fontStyle], [$tocStyle], [$minDepth], [$maxDepth]);
320+
321+
- ``$fontStyle``: See font style section
322+
- ``$tocStyle``: See available options below
323+
- ``$minDepth``: Minimum depth of header to be shown. Default 1
324+
- ``$maxDepth``: Maximum depth of header to be shown. Default 9
325+
326+
Options for ``$tocStyle``:
320327

321328
- ``tabLeader`` Fill type between the title text and the page number.
322329
Use the defined constants in PHPWord\_Style\_TOC.

0 commit comments

Comments
 (0)