PDA

View Full Version : Setting CSS Class to Container?



cgountanis
21 Sep 2009, 1:40 PM
items: [{
title: 'Testing Menu',
html: '<p>Testing Content</p>',
border: false,
iconCls: 'testing'
}
{

I can get an icon to work no problem but what if you wanted to set a class for the DIV itself. Can it be done in this code with some sort of param just like iconCls?

mrsunshine
21 Sep 2009, 1:45 PM
Take look to the great api doc (http://extjs.net/deploy/dev/docs/)

you ll find that you can use cls property

to add a additional class

cgountanis
21 Sep 2009, 1:52 PM
I was playing with


style: 'stylename'

Thank you!


SOLVED!