PDA

View Full Version : checkboxgroup bg color



AgentSmith
23 Jun 2009, 9:54 AM
I can't seem to set the background color of the area around the checkboxes. It's color is white and I'm trying to set it to same color (gray) as the rest of the panel. Also, the bodyStyle font is not being applied to the label (seems to work however for the checkbox labels). Any clues?

Thanks,
AS



<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../ext/resources/css/ext-all.css" />
<script type="text/javascript" src="../../ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext/ext-all.js"></script>


<script type="text/javascript">

Ext.onReady(function(){

new Ext.Panel({
renderTo: 'display_location_id',
width: 200, // Defines panel width.
height: 200,
title: 'My Panel',
bodyStyle: 'background-color:#d4d0c8;padding:15px;font-size:9pt;',
items: [{
xtype: 'label',
html: '<p>Select the following items:</p>'
}, {
xtype: 'checkboxgroup',
columns: 2,
items: [{boxLabel: 'Item1'},
{boxLabel: 'Item2'},
{boxLabel: 'Item3'},
{boxLabel: 'Item4'},
{boxLabel: 'Item5'}]
}]
});

});
</script>
</head>

<body>
<div id="display_location_id"></div>
</body>
</html>

AgentSmith
30 Jun 2009, 4:50 AM
Hello?