3.2.0

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
December 21,
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)
December 21,

This topic is archived.

See also:


Back to support forum