How to Remove/Hide a Full-Screen Button from the Widget
Published 05-30-2023
Hello!
Please find this dashboard script useful in this case:
dashboard.on('initialized', (dash, args) => {
dashboard.widgets.$$widgets.forEach(w => {
w.on('domready', () => {
$(`widget[widgetid='${w.oid}'] widget-toolbar`).find('button.widget-toolbar-btn--fullscreen').remove()
})
})
})