[EMAIL PROTECTED] wrote:
> Doing this means you can target a specific row and allows you to be
> more creative with css as you get more control over the form.
>
> where form_name and field are replaced by the actual value of each I
> might suggest
>
> id="form_name_field_row"
>
> or
>
> id="form_name_field_item"
>
> and where 'row' or 'item' is literal. It might seem superfluous but it
> would help no end in customisation of a dynamically drawn form.
>
That's exactly the reason I've added this, you can for example use a
repeating widget and add new rows by just adding content to this id by
using the fragment provided by a method like this:
@expose(fragment=True)
def method(self, repetition):
return form.render_field_for("field", [repetition])
Ciao
Michele
PS
I will change to id="form_name_field_item" to be more generic so that
you don't need to change everything if you switch from a ListForm to a
TableForm for example.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---