Skip to content

Commit

Permalink
Update links.cfm
Browse files Browse the repository at this point in the history
Added information in description for buttonTo() function about the need for "input" as prefix to add attributes. Didn't add it in arguments list as attributes aren't mentioned anywhere like that, only in description at top.

Also searched for more input prefix related functions, couldn't find them, correct me if i'm wrong.

Thanks for mentioning by @cfcoder in: cfwheels#1352
  • Loading branch information
MvdO79 authored Nov 26, 2023
1 parent a12db22 commit 721398c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wheels/view/links.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public string function linkTo(
}
/**
* Creates a form containing a single button that submits to the URL.
* Creates a form containing a single button that submits to the URL. Note: Pass any additional arguments by prefixing them with "input" like inputClass, inputRel, and inputId, and the generated tag will also include those values as HTML attributes.
* The URL is built the same way as the `linkTo` function.
*
* [section: View Helpers]
Expand Down

0 comments on commit 721398c

Please sign in to comment.