diff --git a/src/ansys/dynamicreporting/core/utils/report_objects.py b/src/ansys/dynamicreporting/core/utils/report_objects.py index cbbd3daee..84f470866 100644 --- a/src/ansys/dynamicreporting/core/utils/report_objects.py +++ b/src/ansys/dynamicreporting/core/utils/report_objects.py @@ -3379,3 +3379,59 @@ def filter_numeric_step(self, value): props = self.get_property() props["filter_numeric_step"] = value self.set_property(props) + + +class userdefinedREST(LayoutREST): + """ + Representation of the User Defined Layout Template. + + This layout inserts a tagged div into the HTML output. This div can be easily found + via Javascript and can host user-supplied HTML content. + """ + + @property + def interactive_only(self) -> int: + """ + "Controls if the template is rendered in 'export' situations (e.g. PDF, PPTX and + offline HTML). + + If non-zero (the default), this template will not be rendered in such + situations. Note: Children are always rendered. + """ + return self.get_property().get("interactive_only") + + @interactive_only.setter + def interactive_only(self, value: int) -> None: + props = self.get_property() + props["interactive_only"] = value + self.set_property(props) + + @property + def before_children(self) -> int: + """ + Controls if the user-defined div is rendered before or after any children. + + If zero (the default), the div comes after the children. + """ + return self.get_property().get("before_children") + + @before_children.setter + def before_children(self, value: int) -> None: + props = self.get_property() + props["before_children"] = value + self.set_property(props) + + @property + def userdef_name(self) -> str: + """ + The value of the adr_userdefined_template attribute on the user-defined div. + + For example: