__init__ constructor
Leave feedback
On this page
Initializes a new TocItem instance.
def __init__(self, depth, text, page_index):
...
| Parameter | Type | Description |
|---|---|---|
| depth | int |
The depth level of the item. |
| text | str |
The text of the item. |
| page_index | Optional[int] |
The index of the page referenced by the item. |
- class
TocItem
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.