Skip to content

Commit 343bbf4

Browse files
authored
add exclude_from_toc for pptx slide layouts (#69)
1 parent 297745e commit 343bbf4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/ansys/dynamicreporting/core/utils/report_objects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3263,6 +3263,16 @@ def source_slide(self, value):
32633263
props["source_slide"] = value
32643264
self.set_property(props)
32653265

3266+
@property
3267+
def exclude_from_toc(self):
3268+
return self.get_property().get("exclude_from_toc")
3269+
3270+
@exclude_from_toc.setter
3271+
def exclude_from_toc(self, value):
3272+
props = self.get_property()
3273+
props["exclude_from_toc"] = value
3274+
self.set_property(props)
3275+
32663276

32673277
class datafilterREST(LayoutREST):
32683278
"""Representation of Data Filter Layout Template."""

tests/test_report_objects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,8 @@ def test_pptx_slide() -> bool:
16921692
a = ro.pptxslideREST()
16931693
a.source_slide = "a"
16941694
assert a.source_slide == "a"
1695+
a.exclude_from_toc = "1"
1696+
assert a.exclude_from_toc == "1"
16951697

16961698

16971699
@pytest.mark.ado_test

0 commit comments

Comments
 (0)