开发者

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

开发者 https://www.devze.com 2023-04-05 19:09 出处:网络
I am usin开发者_StackOverflow社区g Google Sitebricks for developing a user interface. I have a table which i am displaying using @repeat annotation

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

精彩评论

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