djuggler
03/22/2022, 9:44 PMAdam Cameron
buttonTag
give you over <input type="reset">
?Peter Amiri
03/22/2022, 11:01 PMtype
attribute that can take button
, reset
, or submit
as inputs. It defaults to button if nothing is passed in.Adam Cameron
buttonTag
give one that just using mark-up? In what way does this helper "help" in this situation?Peter Amiri
03/22/2022, 11:43 PM// Text/select/password/file Fields
set(functionName="textField,textFieldTag,select,selectTag,passwordField,passwordFieldTag,textArea,textAreaTag,fileFieldTag,fileField",
class="form-control",
labelClass="control-label",
labelPlacement="before",
prependToLabel="<div class='form-group'>",
prepend="<div class=''>",
append="</div></div>",
encode="attributes" );
Then in your view you could have a call like this:
#textFieldTag(name="q", value=params.q, label="Keyword Search", labelClass="sr-only", placeholder="Keyword")#
That automatically wraps the input tag with the html markup without having to repeat that.Adam Cameron
Adam Cameron
djuggler
03/24/2022, 5:10 PMdjuggler
03/24/2022, 5:12 PM