ElementUX
05-19-2022Cloud Apps
BLOX widget script level CSS changes
I have custom dashboard level script to style widget borders/headers:
dashboard.on('widgetready', function(d){
$('.widget')
.css('border-radius','10px')
.css('border', '#c8c8c8 solid 1px');
$('widget-header')
.css('background-color','#f2f2f2')
.css('height','40px')
.css('border-bottom', '#c8c8c8 solid 1px')
.css('padding-top','3px');
}
I have a top BLOX widget with 3 buttons with no title. It obviously now picks up the dashboard widget header styles and I do not want that on this widget. I need no border/no header. I tried to add the above code on the BLOX level script to override with 0px height and border settings, but that didn't work. Is there another way to code that? Any ideas?