Discussion : Generic field interfacing

16 views
Skip to first unread message

Voltron

unread,
Mar 1, 2012, 5:54:05 AM3/1/12
to Humongolus
Would it be better from a template designers view if they could access
field attributes and values the same way? let me explain:

Tag attributes for a HTMLWidget object could accessed as follows:

field["id"], form["action"], form["method"], field["selected"] or

field.atributes["id"], form.atributes["action"],
form.atributes["method"], field.atributes["selected"]

Just as CSS accesses attributes

Values and other attributes, this way:

field.name.id, field.name. and not field.get_id, form.get_name,
form._cls, form._type.

What do you think?

Christopher S Coté

unread,
Mar 1, 2012, 12:05:54 PM3/1/12
to humon...@googlegroups.com
definitely, I'll see what I can do.

Christopher Coté

unread,
Mar 2, 2012, 1:10:26 PM3/2/12
to humon...@googlegroups.com
all widget attributes are available as widget.attributes.idwidget.attributes.name, widget.attributes.cls, etc.
Reply all
Reply to author
Forward
0 new messages