Groups
Groups
Sign in
Groups
Groups
Cambridge Template Engine
Conversations
About
Send feedback
Help
Nice way of doing Checkboxes?
19 views
Skip to first unread message
Mat Jaggard
unread,
Jul 12, 2012, 9:37:58 AM
7/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
At the moment, I'm doing something like this for every checkbox - I'm
thinking there must be a better way.
<input a:if="checkboxTicked" type="checkbox" value="checked"
name="${PARAM_NAME}" id="${PARAM_NAME}" checked="checked"/>
<input type="checkbox" value="checked" name="${PARAM_NAME}"
id="${PARAM_NAME}" a:else />
Erdinc Yilmazel
unread,
Jul 12, 2012, 11:11:33 AM
7/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cambridge...@googlegroups.com
Yes there is:
<input type="checkbox" value="checked" name="${PARAM_NAME}" id="${PARAM_NAME}" a:next="checkBoxTicked" checked="checked" />
https://code.google.com/p/cambridge/wiki/TemplateAuthorsGuide#Next_Attribute_Behavior
Erdinc
Reply all
Reply to author
Forward
0 new messages