Forum Discussion

Tet's avatar
Tet
Cloud Apps
02-06-2024
Solved

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 r...
  • rapidbisupport's avatar
    03-07-2024

    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

    [email protected]

    RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons