cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove headers on a widget

Astroraf
10 - ETL
10 - ETL

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 

 
1 ACCEPTED SOLUTION

Astroraf
10 - ETL
10 - ETL

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 

View solution in original post

1 REPLY 1

Astroraf
10 - ETL
10 - ETL

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