EasyUI Forum
April 29, 2024, 10:33:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Panel Header css background-color  (Read 5400 times)
sky-t
Full Member
***
Posts: 145


View Profile
« on: August 20, 2017, 02:37:30 PM »

Hi there,

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

Thank you
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
Logged
sky-t
Full Member
***
Posts: 145


View Profile
« Reply #2 on: August 21, 2017, 09:32:05 PM »

Hi stworthy,

this is working perfectly!!!

Thank you very much!!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!