Tet
02-06-2024Cloud Apps
export only the visible widgets to PDF using the Tabber plugin
I am building a dashboard using the Tabber plugin.
However, during the export process to pdf, all widgets are included, even those hidden by Tabber.
Is there a way to address this issue without relying on other plugins?
I am specifically looking for a script-based solution.
Thanks,
You can always refer to the tabbers 'active tab' hide list using something like:
const tabberWidget = dashboard.widgets.$$widgets.find((w) => { return w.oid === 'TABBER_WIDGET_OID'} let currentlySelectedHideList = tabberWidget.tabs[tabberWidget.style.activeTab].hideWidgetIds // hide pdf based on this list.
You could use this to adjust the DOM accordingly on click for widgets in hidelist and clear the rule for all other widgets...
$('[widgetid=' + ev.widget.oid + ']').closest('.u-r').height(0)
Let me know how you go?
Thanks,
Daniel
RAPID BI
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons