So, what do you think is the best way to add support for this in Wheels?
1) Pass in underscores which Wheels translates to hyphens.
#linkTo(action="x", data_role="button", data_dom_cache=true)#
2) New "data" argument that accepts a list (or struct/query as well probably)
#linkTo(action="x", data="role=button, dom-cache=true")#
/ Per
I prefer the second option.
A+
Simon
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
/ Per
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
The following is already supported in Wheels (although not yet
released I think):
textFieldTag(name="phone", type="tel")
/ Per
> --
> You received this message because you are subscribed to the Google Groups
> "ColdFusion on Wheels" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cfwheels/-/OdXLTg7COiAJ.
With that in place you can call #textFieldTag(name="x",
dataDomCache=true)# and have dataDomCache converted to data-dom-cache
as the attribute name.
Also, remember that you can always pass in an argument with hyphens like this:
<cfset args["data-dom-cache"] = true>
#linkTo(action="x", argumentCollection=args)#
In other words my solution is just intended to make coding a little
more elegant :)
(the core team will of course have to decide if this is something that
should go in core)
/ Per
> --
> You received this message because you are subscribed to the Google Groups
> "ColdFusion on Wheels" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cfwheels/-/ydqdN5agM7MJ.
> For more options, visit this group at
> http://groups.google.com/group/cfwheels?hl=en.
--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "ColdFusion on Wheels" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cfwheels/uTAQAVNa6Hk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cfwheels+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfwheels.
For more options, visit https://groups.google.com/groups/opt_out.