Events
The plug-in exposes one event that can be listened on document
or on particular report.
- Default callback [uc_default_callback] - triggered each time nested report is being shown or hidden.
this.data
is extended with additional information described below.
Property | Type | Description |
---|---|---|
this.data.afterRefresh | Boolean | When true the nested report is rendered after forced refresh. |
this.data.animationRunning | Boolean | When true the nested report is the middle of animation (expanding or collapsing). |
this.data.isCollapsed | Boolean | When true the nested report is collapsed. |
this.data.isCollapsing | Boolean | When true the nested report is collapsing |
this.data.isExpanded | Boolean | When true the nested report is expanded. |
this.data.isExpanding | Boolean | When true the nested report is expanding |
this.data.report | jQuery | object reference to parent report (1 level higher report) |
this.data.triggeringElement | jQuery | object reference to the element that was bound in dynamic action (eg. Selection Type = jQuery Selector) |
this.data.triggeringTd | jQuery | object reference to the cell from which nested report was performed. |
this.data.parent | Object | describes the parent element of the current nested report. |
this.data.parent.element | jQuery | object Reference to parent element of the nested report (instance of the plug-in or native APEX report) |
this.data.parent.level | Number | Describes the level of nested report. First level starts with 1. |
this.data.parent.type | String | When "nested" the parent element of nested report is instance of the plug-in. When "affectedElement" the parent element of nested report is native APEX component such as Classic Report or Interactive report. |
Manual events
Default callback supports 4 predefined actions (refresh, expand all, collapse, collapse all) that can be executed using anchors with proper classes. Those actions work only when anchors with a given class are embedded in Extend default template
or Custom template
using Default Callback
for a particular nested report.
Refresh nested report
The action forces the current nested report to be refreshed.
<a href="javascript: void(0)" class="nestedreport--refresh">Refresh</a>
Collapse nested report
The action forces the current nested report to be collapsed.
<a href="javascript: void(0)" class="nestedreport--slideup">Slide up</a>
Expand all nested reports
Action forces all next level nested reports to expand.
<a href="javascript: void(0)" class="nestedreport--expandAll">Expand all</a>
Collapse all expanded nested reports
Action forces all next level expanded nested report to collapse.
<a href="javascript: void(0)" class="nestedreport--slideup">Collapse all expanded</a>