3.2.0

How do I create have a new control with 2 templates?

I'm trying to create a new control ("Page") which has a header and content areas, both exist as templates. The bit I'm not sure about is how to set the Page content such that I see both the Header and the Content areas.

Can anyone please, please help me?

Kind regards,
Steve

----------------------------------------------------
Active.Controls.Page = Active.System.Control.subclass();
Active.Controls.Page.create = function() {
var obj = this.prototype;

obj.setClass("control", "page");

obj.defineTemplate("header", new Active.Templates.PageHeader);
obj.defineTemplate("content", new Active.Templates.Text);

obj.setContent(function() { return this.getHeaderTemplate(); } );
};

Active.Controls.Page.create();
June 8,

This topic is archived.

See also:


Back to support forum