From d2623c2159a45d3ec2881daa9978a33a4a2bc637 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 14 Sep 2010 11:32:19 -0700 Subject: [PATCH] Extend the base class to add a method that will set the head tags for a form plugin. The intent is that users of form plugins can build them during prepareView for content chunking, and push links and scripts out in the head block, rather than in the body to assist with validation. --- lib/WebGUI/Form/Control.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/WebGUI/Form/Control.pm b/lib/WebGUI/Form/Control.pm index a052face9..5ca96873d 100644 --- a/lib/WebGUI/Form/Control.pm +++ b/lib/WebGUI/Form/Control.pm @@ -452,6 +452,18 @@ sub getValueFromPost { #------------------------------------------------------------------- +=head2 headTags ( ) + +Set any head tags that this form plugin needs for CSS or Javascript. + +=cut + +sub headTags { + return ''; +} + +#------------------------------------------------------------------- + =head2 isDynamicCompatible ( ) A class method that returns a boolean indicating whether this control is compatible with the DynamicField control. Returns 0.