Description
Category
- Enhancement
- Bug
- Question
- Documentation gap/issue
Version
Please specify what version of the library you are using: [3.9.0]
Please specify what version(s) of PowerPoint you are targeting: [not_related]
Expected / Desired Behavior / Question
How to build a slider with table of content?
On version 3.1.1 I was using .number
but after bumping to 3.9.0 I have a problem.
Somehow I need to get page number from created slide.
Is there any other good solution (API?) to create table of content?
Observed Behavior
Long time ago there was a function getPageNumber()
(#353)
Version 3.1.1 returned a number const slide = pptx.addSlide('Page number'); return slide.number;
.
On version 3.3.0 .number
was changed/renamed.
Apparently on 3.9.0 there is an attribute slide._slideNum
but using TS there is no clean approach to get it. TS documentation suggest .slideNumber
but it's not supported by the code.
Steps to Reproduce
V 3.2.1 https://codesandbox.io/s/pptxgenjs-page-number-3-2-1-hqew7?file=/src/App.js
V 3.9.0 https://codesandbox.io/s/pptxgenjs-page-number-3-9-0-2n9js?file=/src/App.js