You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since ColdFusion cannot have any dashes in argument names we have constructed a work around for you. Let's say you want a "data-dom-cache" HTML attribute, then all you have to do is pass in "data_dom_cache" and Wheels will convert that to "data-dom-cache" in the HTML output for you.
You can also pass in the (perhaps a little prettier) "dataDomCache" instead but then you need to update the global "dataAttributeDelimiter" setting first like this:
set(dataAttributeDelimiter="A-Z")
The text was updated successfully, but these errors were encountered:
http://cfwheels.org/docs/1-1/chapter/form-helpers-and-showing-errors
Text (add in the "Passing Extra Arguments for HTML Attributes" section):
Since ColdFusion cannot have any dashes in argument names we have constructed a work around for you. Let's say you want a "data-dom-cache" HTML attribute, then all you have to do is pass in "data_dom_cache" and Wheels will convert that to "data-dom-cache" in the HTML output for you.
You can also pass in the (perhaps a little prettier) "dataDomCache" instead but then you need to update the global "dataAttributeDelimiter" setting first like this:
set(dataAttributeDelimiter="A-Z")
The text was updated successfully, but these errors were encountered: