Add Image Button in sqlform.grid

169 views
Skip to first unread message

Pawan Jha

unread,
May 25, 2013, 7:09:58 AM5/25/13
to web...@googlegroups.com
Hi

 i need to customize my link with image icon so how will i do this in web2py SQLFORM.grid

i am adding link to sqlform.grid

Pawan Jha

unread,
May 25, 2013, 7:21:43 AM5/25/13
to web...@googlegroups.com
 

I have already use this but this is not working

links = [lambda row: A(TAG[''](SPAN(_class="icon icon-list"),SPAN('List', _class="buttontext button", _title="list")), _class="w2p_trap button btn", _href=URL('see_list', args=[row.id])),
             lambda row: A(TAG[''](SPAN(_class="icon icon-user"),SPAN('Users', _class="buttontext button", _title="CC a")), _class="w2p_trap button btn", _href=URL('users', args=[row.id]))]
grid = SQLFORM.grid(query, fields = fields,deletable=deletable, editable=editable, details = details,create=create, csv=False, orderby = orderby, links = links)
Reply all
Reply to author
Forward
0 new messages