B4J Question ABMTable - how to hide the header?

Solution
You will have to use something like this (I'm not on my PC for the moment, so untested)

B4X:
Dim tbl1 as ABMTable
tbl1.Initialize(page, "tbl1", True, False, True, "tbl1theme")
...
page.Refresh
page.FinishedLoading

' use AFTER page refreshed (or when the table is loaded/refreshed)
' ID must be lowercase and, if used in e.g. a modalsheet or container this name may vary
' use Chrome - F12 - elements to find the correct id
Dim TableID As String = "tbl1"    
Dim Script As String = $"$('#${TableID} > thead').css('display', 'none')"$
page.ws.eval(Script, Null)
page.ws.flush

Alwaysbusy

alwaysbusy

Expert
Licensed User
Longtime User
You will have to use something like this (I'm not on my PC for the moment, so untested)

B4X:
Dim tbl1 as ABMTable
tbl1.Initialize(page, "tbl1", True, False, True, "tbl1theme")
...
page.Refresh
page.FinishedLoading

' use AFTER page refreshed (or when the table is loaded/refreshed)
' ID must be lowercase and, if used in e.g. a modalsheet or container this name may vary
' use Chrome - F12 - elements to find the correct id
Dim TableID As String = "tbl1"    
Dim Script As String = $"$('#${TableID} > thead').css('display', 'none')"$
page.ws.eval(Script, Null)
page.ws.flush

Alwaysbusy
 
Upvote 0
Solution
Top