Remove an element from SQLFORM.grid

52 views
Skip to first unread message

Jeff Plata

unread,
May 17, 2023, 7:30:05 AM5/17/23
to web2py-users
I use the following code to hide the thead element of a grid, but I actually want to delete it. Is there a method to delete the target element? TIA.

    grid.element('thead')['_hidden'] = 'hidden'

Leonel Câmara

unread,
May 18, 2023, 6:46:43 AM5/18/23
to web2py-users
You can do grid.elements('thead', replace=None)
Reply all
Reply to author
Forward
0 new messages