Hi,
thanks for the suggestions, here are some answers (0.2beta) :
On 12 juin, 12:13, mingfai <
mingfai...@gmail.com> wrote:
> 1. Core additionals
> * Add an ID field for Field
> o With an ID, a field could be looked up and be
> manipulated
> o It is especially necessary as I define the whole
> form with all fields in JSON.
This is necessary.
We also need it to use elements that already are in the DOM (more YUI-
like).
However, it has a drawback: we'll need to be very careful when
composing fields: in a list of url, url fields can't have the same id.
> * Provide a find() for Form/Group to find a child Field by
> ID, and a findParent()/findContainer() to find the HTMLElement that
> contain the Field. (it's just a wrapper of YUI Dom method)
same as above
For the time being, you may want to use Group.getFieldByName
> * Make all configurable field as "member variable" so that
> they could be generated by JSDoc. It may have been done in the 0.2beta
> trunk already. for 0.1, we have to check what fields are configurable
> in the code.
I still have some issues with my doc generator, I'm working on this...
> 2. form layout
> * currently, every field is generated as a row in a two
> column table. For group, it's "indent" for one level.
> * use case:
> o some fields are related and we may want to put them
> in one row. e.g. first name and last name, or four fields for credit
> card number.
> o a form may have section and at least we want to have
> some spacing before/after a field row
>
> * suggestion:
> o the field definition support a few UI instruction:
> "LineBreak", "SkipRow" etc.
> o any UI instruction are in "serial manner"
> o [idea] perhaps we could provide an option to tell
> how many column the table should use. (each column refers to label and
> field pair, not html table column)
> o for complex layout requirement, i suppose we can use
> parentEl to define an element and we position the element by
> ourselves.
cf Satyam's comment.
I already switched from tables to divs and inserted CSS customizables
linebreakers.
I'm still working on the CSS classnames which currently are in a mess.
> 3. Field interaction
> ...
Yes !
This require some thinking... Let's create a page on the wiki with
some use cases...
> 4. Improvement of Existing Fields
> 5. Additional Fields
I'm creating pages on the wiki for these too :)
All ideas for new fields or enhancement are welcome !
Eric