PDA

View Full Version : YAHOO.ext.ContentPanel own style class ?



antonfunk
8 Mar 2007, 3:59 AM
Hi volks, i ve an question: is it Possible to set own style for YAHOO.ext.ContentPanel

like cls:"myclass" ?

Thanks all

tryanDLS
8 Mar 2007, 10:43 AM
I don't believe there's a config options for this on a CP, unless you do autoCreate:true and pass it as part of the DomHelper config. The other way would be to get a ref to the underlying Element and call addClass()


//assuming cp is a ref to your contentpanel
cp.getEl().addClass('myCSSname');

Refer to the docs for further info.