Hello.
I have a problem with ABTable.
I do not have table_Clicked or highlighting the selected row, sort.
Surprisingly, Demo does not work like in my program.
But on DEMO online abmaterial.com everything works fine.
What can be predictable?

I have a problem with ABTable.
I do not have table_Clicked or highlighting the selected row, sort.
Surprisingly, Demo does not work like in my program.
But on DEMO online abmaterial.com everything works fine.
What can be predictable?
B4X:
Dim tablica As ABMTable
Dim lista As List = DBM.SQLSelect(DBM.GetSQL, "select * from moderator")
tablica.Initialize(page, "tbl1", True, False,True, "tbl1theme")
tablica.SetFooters(Array As String("Wszystkich: "&lista.Size))
tablica.SetHeaders(Array As String("Nazwa", "Code", "Opis", "Aktywny","Usuń"))
tablica.SetColumnWidths(Array As Int(120,100,120,50,50))
tablica.SetColumnDataFields(Array As String("Nazwa", "Code", "Opis", "Aktywny","Usuń"))
tablica.SetFooter("Wszystkich: "&lista.Size, 12, "tbl1theme")
tablica.SetFooterThemes(Array As String("headerfooter"))
For i = 0 To lista.Size-1
Dim m As Map = lista.Get(i)
Dim act As Boolean
If m.Get("active") = "1" Then
act = True
Else
act = False
End If
Dim r As List
r.Initialize
r.Add(m.Get("name"))
r.Add(m.Get("code"))
r.Add(m.Get("opis"))
Dim switchactive As ABMSwitch
switchactive.Initialize(page, "sw11", "On", "Off", act, "")
switchactive.Tag = m.Get("name")
switchactive.State = act
r.Add(switchactive)
Dim dele As ABMButton
dele.InitializeFlat(page,"del","mdi-action-delete",ABM.ICONALIGN_CENTER,"","")
r.Add(dele)
tablica.AddRow(m.Get("name"),r)
'tablica.SetRowThemes(Array As String("nocolor","nocolor","nocolor","nocolor"))
Next
tablica.IsResponsive = True
page.Cell(1,1).AddComponent(tablica)
B4X:
Sub tbl1_Clicked(PassedRowsAndColumns As List)
Dim tblCellInfo As ABMTableCell = PassedRowsAndColumns.Get(0)
If tblCellInfo.Column = 4 Then
Log("a")
End If
End Sub
