EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on August 20, 2017, 02:37:30 PM



Title: Panel Header css background-color
Post by: sky-t on August 20, 2017, 02:37:30 PM
Hi there,

how can i change the complete header background-color of a panel?

Thank you


Title: Re: Panel Header css background-color
Post by: stworthy on August 21, 2017, 01:33:59 AM
Call the 'header' method to get the panel header and then you can call the native 'css' method to change its style.
Code:
var header = $('#p').panel('header');
header.css('background', '#ddd');


Title: Re: Panel Header css background-color
Post by: sky-t on August 21, 2017, 09:32:05 PM
Hi stworthy,

this is working perfectly!!!

Thank you very much!!!