2008年8月9日星期六

Re: [fw-mvc] Dojo ZF Form decorator

-- Steven <gatecrasher1981@gmail.com> wrote
(on Saturday, 09 August 2008, 12:39 PM +0100):
> Quick question on the best implementation approach for the following.
>
> I've a Zend Form that implements the decorator that appends a
> paragraph tag after a form element with the class 'hint' - currently
> hidden via CSS, I'm aiming to implement this with Dojo's tooltip dijit
> functionality. My favoured method would be to decorate the form
> elements with an image that apears after the elements (might be best
> to do this with CSS?) and have an onclick event associated to call
> dojo and display the tooltip (i.e. the paragraph tag).
>
> However despite reading the docs several times I'm now feeling rather
> stupid as I still can't figure out the best way to implement this, so
> I'm hoping for any pointers in the right direction?

A decorator would be ideal for this. Unfortunately, I can't give any
more feedback than this without knowing what sort of markup you'd like
to generate, and what elements of that markup can be derived from the
element metadata. So, send another email with more specifics, and we'll
see what we can come up with.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: