:: Forum >>

How do I define a class name for inner controls of a composite control ?

Hi guys,

I have a composite control and would like to have ability to set style for it's internal controls, how can I do that with respect to the name of template I define inside of the element. Will thr following example work?

obj.defineTemplate( "innerDiv", new AW.HTML.DIV );
     with (template = obj.getTemplate( "innerDiv" ) )
     {
     setStyle("width", "100%");
     setStyle("height", "100%");
     [b]setClass("comeClass");[/b]
     }


I want to have a class like this .aw-ui-infoPanel-inner
Andrew
Wednesday, December 21, 2005
The class names in AW are composed out of three parts - prefix (aw), class name (first arg) and class value (second arg), so you could have .aw-infoPanel-inner if you call setClass("infoPanel", "inner");
Alex (ActiveWidgets)
Wednesday, December 21, 2005

This topic is archived.


Back to support forum

Forum search