SliderLayout#

class ansys.dynamicreporting.core.serverless.template.SliderLayout(*args, **kwargs)#

Bases: Layout

Slider layout that maps tags to slider controls.

Methods

SliderLayout.add_filter([filter_str])

Append filter_str to the current item filter.

SliderLayout.add_map_to_slider([value])

Append tags to the existing slider mapping.

SliderLayout.add_params(new_params)

Merge new_params into the existing params dictionary.

SliderLayout.add_properties(new_props)

Alias for add_property().

SliderLayout.add_property(new_props)

Merge new_props into the existing properties sub-dictionary.

SliderLayout.add_sort_fields(sort_field)

Extend the existing sort field list with sort_field.

SliderLayout.add_tag(tag[, value])

Add or update a single tag.

SliderLayout.as_dict([recursive])

Serialize the model into a plain dictionary.

SliderLayout.create(**kwargs)

Factory-style creation that dispatches to the correct subclass.

SliderLayout.delete()

Delete this object from the database.

SliderLayout.filter(**kwargs)

Return a collection of templates, scoped by subclass report_type.

SliderLayout.find([query])

Search for templates using an ADR query string.

SliderLayout.get(**kwargs)

Retrieve a single template, scoped by subclass report_type.

SliderLayout.get_column_count()

Return the number of columns in this layout.

SliderLayout.get_column_widths()

Return the list of column width factors.

SliderLayout.get_comments()

Return any user comments associated with this layout.

SliderLayout.get_filter()

Return the raw item filter string.

SliderLayout.get_filter_mode()

Return the filter mode ('items', 'root_replace', or 'root_append').

SliderLayout.get_html()

Return the raw HTML fragment stored on this layout.

SliderLayout.get_map_to_slider()

Return the list of tags mapped to slider controls.

SliderLayout.get_params()

Deserialize params into a Python dictionary.

SliderLayout.get_property()

Return the properties sub-dictionary from params (if present).

SliderLayout.get_skip()

Return the 'skip empty' flag (0 or 1).

SliderLayout.get_sort_fields()

Return the configured sort fields list, if any.

SliderLayout.get_sort_selection()

Return the sort selection mode ('all', 'first', or 'last').

SliderLayout.get_tags()

Return the raw tag string stored on this object.

SliderLayout.get_transpose()

Return the table transpose flag (0 or 1).

SliderLayout.reinit()

Reset the in-memory ORM state for this object.

SliderLayout.rem_tag(tag)

Remove a tag by key, if it exists.

SliderLayout.remove_tag(tag)

Alias for rem_tag() for backwards compatibility.

SliderLayout.render(*[, context, ...])

Render the template to HTML.

SliderLayout.render_pdf(*[, context, ...])

Render the template to a PDF byte stream.

SliderLayout.reorder_child(...)

Move a child template to a new position in children.

SliderLayout.reorder_children()

Reorder the children list based on the children_order string.

SliderLayout.save(**kwargs)

Save the template, enforcing parent/child invariants.

SliderLayout.set_column_count(value)

Set the number of columns in this layout.

SliderLayout.set_column_widths(value)

Set the list of column width factors.

SliderLayout.set_comments([value])

Set user comments for this layout.

SliderLayout.set_filter(filter_str)

Replace the current item filter with filter_str.

SliderLayout.set_filter_mode([value])

Set the filter mode.

SliderLayout.set_html([value])

Set the HTML fragment for this layout.

SliderLayout.set_map_to_slider([value])

Set the list of tags mapped to slider controls.

SliderLayout.set_params(new_params)

Replace the current params dictionary.

SliderLayout.set_property(new_props)

Replace the properties sub-dictionary with new_props.

SliderLayout.set_skip([value])

Set whether empty content should be skipped (0 or 1).

SliderLayout.set_sort_fields(sort_field)

Set the full list of sort fields.

SliderLayout.set_sort_selection([value])

Set the sort selection mode.

SliderLayout.set_tags(tag_str)

Replace all tags with the given tag string.

SliderLayout.set_transpose([value])

Set whether tabular data should be transposed (0 or 1).

SliderLayout.to_dict()

Return a JSON-serializable dictionary for the full template tree.

SliderLayout.to_json(filename)

Dump the full template tree to a JSON file.

SliderLayout.update_children_order()

Update children_order from the current children list.

Attributes

SliderLayout.children_order

Comma-separated list of child GUIDs in desired order.

SliderLayout.db

Database alias in which this object is stored.

SliderLayout.item_filter

Default ADR query string used to select items for this template.

SliderLayout.master

Whether this template is a root (no parent).

SliderLayout.name

Human-readable name of the template.

SliderLayout.params

JSON-encoded parameter dictionary backing this template configuration.

SliderLayout.parent

Parent template in the hierarchy, or None for a root template.

SliderLayout.report_type

Canonical type string used for subclass dispatch and filtering.

SliderLayout.saved

Whether this object has been successfully saved to the database.

SliderLayout.tags

Tag string used to group and filter objects.

SliderLayout.type

Alias for report_type for parity with items.

SliderLayout.date

Template creation timestamp.

SliderLayout.children

Ordered list of child templates that form this template's subtree.

SliderLayout.guid

Globally unique identifier for this object.

exception DoesNotExist(extra_detail: str = None)#

Bases: DoesNotExist

exception IntegrityError(extra_detail: str = None)#

Bases: IntegrityError

exception MultipleObjectsReturned(extra_detail: str = None)#

Bases: MultipleObjectsReturned

exception NotSaved(extra_detail: str = None)#

Bases: NotSaved

add_map_to_slider(value: list[str] | None = None) None#

Append tags to the existing slider mapping.

get_map_to_slider() list[str]#

Return the list of tags mapped to slider controls.

report_type: str = 'Layout:slider'#

Canonical type string used for subclass dispatch and filtering.

set_map_to_slider(value: list[str] | None = None) None#

Set the list of tags mapped to slider controls.