开发者

Display hyperlink in <td> based on condition in google sitebricks

I am usin开发者_StackOverflow社区g Google Sitebricks for developing a user interface.

I have a table which i am displaying using @repeat annotation

@Repeat(items=regusers, var="reguser")

<tr>
<td><a href="/something/${reguser.userId}">${reguser.userId}</a></td>
<td>${reguser.userRegAt}</td>      
</tr>

I have a 'status' variable .based on this value i wanna toggle display of anchor tag in first column

can you please point me to a solution .

Thanks . .


Please try the following

<tr>

@ShowIf(status)
<td><a href="/something/${reguser.userId}">${reguser.userId}</a></td>

<td>${reguser.userRegAt}</td>
</tr> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜