HTML Helper Defaults

Description

I was really happy when I found out you guys had an equivalent to cfwheels' form helpers.

However there is one feature I can't figure out. In wheels I can go to settings.cfm and add:

set(functionName="textField", labelClass="control-label", prependToLabel='<div class="control-group">', appendToLabel='<div class="controls">', append="</div></div>", labelPlacement="before");

What this does is prevent me from having to set these fields every time I use the textfield tag, it just assumes what I set it to in the settings file, I can even override the default if I want.

How do I set defaults for html.textfield and others?

Activity

Show:
Luis Majano
November 11, 2013, 8:04 PM

I think this can be a good addition by maybe leveraging the argument collection for each method. So basically store the argument collection and just do a simple structappend().

Great suggestion.

Assignee

Luis Majano

Reporter

Tim Badolato

Labels

None

Components

Priority

Major
Configure