Hi all,

Jewel Form and FormItem specially, was implemented in a way that I never
was happy. Also others like Piotr had problems doing certain things.
So I was thinking of doing a big refactor, I think it will be important
before we reach 1.0. But before doing this I was thinking first of leaving
the actual Form and FormItem code available for some time as "deprecated"
to be able to take the name for the new components. Another option could be
to make the refactor over the actual control, but that will mean breaking
actual code, so I think that will be a bad idea. Doing this way, you just
need to rename both components in all your apps to the new name so that
seems pretty easy so far.

So the name could be "FormDPCT" and "FormItemDPCT" (DPCT for "Deprecated").
That means that initially, Form and FormDPCT will have the same code, and
FormItem and FormItemDPCT will have the same code too. If you have other
proposals for the new name let me know.

The refactor will do a better Form and FormItem responsive, so I think it
is better to layout vertically (label then content controls) by default and
take all available width in mobile screens. I think we'll need two layouts
for the FormItem, one for layout label and content controls, and other for
the content controls itself. Default will be all vertical.

Then we'll be able to add other jewel layout beads to make all horizontal
or just some parts.
I think that way we'll have all flexibility.

@Piotr (and others). I think it is the time to put in this thread anything
you think I should consider in this refactor, so if you remember the main
issues please take the time to log in this thread so I can have in mind.

-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to