On Mar 24, 11:06 am, Saikat Chakrabarti <[email protected]> wrote:
> When creating forms, I want to have all the input fields line up on
> the left side, and as far as I know, the only way to do this well is
> using a table to layout the form.  Does anyone already have a view
> type defined that would allow me to display forms in such a tabular
> fashion?  Or is there already some way to do this that I don't know
> about?

No, unfortunately not.


> Otherwise, is the easiest way to do this just to create my own
> new view type that displays the form as I want it?

If I had a wish then it would be dataform support for custom renderers
so we can easily choose which one we need and specialize them.

I.e.:

(defclass dataform ()
  ((renderer :type (or symbol class) :initform *dataform-default-
renderer*)
   [...]))

(defclass dataform-table-renderer (dataform-renderer)
  ())

(defmethod dataform-renderer-render-form ((form dataform-table-
renderer))
  ...)

(make-instance 'dataform :renderer 'dataform-table-renderer)

-- you get the idea.

This shouldn't be hard to implement and will benefit us greatly in the
long term.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to