Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sections: taxonomies for form fields #6

Open
stickgrinder opened this issue Sep 19, 2011 · 0 comments
Open

Sections: taxonomies for form fields #6

stickgrinder opened this issue Sep 19, 2011 · 0 comments
Milestone

Comments

@stickgrinder
Copy link
Owner

Up to 2.0 version, there is no "logical" clue on different form sections other than fieldsets (imagine a multistep form with several fieldsets in each step). Form Sections would be a way to "categorize" fields to fall into one or more sections. Think them as a field-tagging system that creates orthogonal sets of fields that can be rendered with a single command.

The solution I can foresee is to create a register of tags, with associated field names, so that I could reverse-search tagged fields.
This can be approached in one or more of the following:

  • Add a property to all fields-adder methods to specify a list of tags
  • Add a tag() method that take an array of fieldnames
  • Add a ->tag() method that add tags fluently after a field creation

Any clue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant