Nice way of doing Checkboxes?

19 views
Skip to first unread message

Mat Jaggard

unread,
Jul 12, 2012, 9:37:58 AM7/12/12
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 AM7/12/12
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