From 397d0db245383c49688d13b701157f76f9aee1ca 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 b0b02d1a7..11e7ab0fd 100644 --- a/lib/WebGUI/Form/Control.pm +++ b/lib/WebGUI/Form/Control.pm @@ -464,6 +464,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.