Forum Discussion

Astroraf's avatar
Astroraf
Data Pipeline
07-09-2024
Solved

How to remove headers on a widget

I have previously seen this post on the community regarding removing a header from a widget but the solutions have either been removed in terms of plugins or the code provided does not work. 

https://community.sisense.com/t5/build-analytics/remove-widget-title-box/td-p/1327

Is there a way to remove headers?

 

DRay  javierecfpn 

 
  • widget.on('ready', () =>

    { const titleElementEditMode = element.parent().find('.transput-holder');

    const titleElementViewMode = element.parent().find('.widget-title__holder > widget-title');

    // Clear the contents of the elements

    titleElementEditMode.empty();

    titleElementViewMode.empty();

    // Set display style to none

    titleElementEditMode.css('display', 'none');

    titleElementViewMode.css('display', 'none');

    });

     

    Edit: For clear code 

1 Reply

  • Astroraf's avatar
    Astroraf
    Data Pipeline

    widget.on('ready', () =>

    { const titleElementEditMode = element.parent().find('.transput-holder');

    const titleElementViewMode = element.parent().find('.widget-title__holder > widget-title');

    // Clear the contents of the elements

    titleElementEditMode.empty();

    titleElementViewMode.empty();

    // Set display style to none

    titleElementEditMode.css('display', 'none');

    titleElementViewMode.css('display', 'none');

    });

     

    Edit: For clear code