#902: [PATCH] All input widgets should have a "field_id" param to allow
overriding the DOM element's id
---------------------+------------------------------------------------------
Reporter: alberto | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0b1
Component: Widgets | Version: 0.9a5
Severity: major | Keywords:
---------------------+------------------------------------------------------
This param should override the autogenerated id for the field. Without
this functionallity it's very hard to refer to the input fields in JS code
or store any kind of info in them.
The use case I'm trying to implement is to store a record's id in the id
attribute like {{{phone-6}}} which corresponds to the phone field for the
record with id 6. I need this for the JS code to parse and build the URL
where the value should be submitted.
I'm attaching a patch for review and inspiration of a better solution. ;)
P.S: Maybe this should apply to all widgets
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/902>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---