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Â
Â
Rafael Ferreira
Posted 2 years ago·Last reply 2 years ago
1 comment
Rafael Ferreira
OP2 years agowidget.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Â