harinder Active Member Licensed User Longtime User Sep 29, 2017 #1 I use webviews to display table data. I'd like to be able to make the column headers stay at the top of the webview when I scroll the table. I assume it needs css or html but I don't know much about them. Does anyone know how to do this? Regards....
I use webviews to display table data. I'd like to be able to make the column headers stay at the top of the webview when I scroll the table. I assume it needs css or html but I don't know much about them. Does anyone know how to do this? Regards....
DonManfred Expert Licensed User Longtime User Sep 29, 2017 #2 https://www.google.de/search?source...5i39k1j0i131k1j0i10i67k1j0i67k1.0.c0M4JVztQ1c Upvote 0
harinder Active Member Licensed User Longtime User Sep 29, 2017 #3 yes I googled that earlier but what text do I change in process_globals of dbutils: B4X: Private HtmlCSS As String = $" table {width: 100%;border: 1px solid #cef;text-align: centre; } th { font-weight: bold; background-color: #f0f; border-bottom: 1px solid #99f; } td,th { padding: 4px 5px; } .odd {background-color: #fcf; } .odd td {border-bottom: 1px solid #cef; } a { text-decoration:none; color: #000;}"$ Upvote 0
yes I googled that earlier but what text do I change in process_globals of dbutils: B4X: Private HtmlCSS As String = $" table {width: 100%;border: 1px solid #cef;text-align: centre; } th { font-weight: bold; background-color: #f0f; border-bottom: 1px solid #99f; } td,th { padding: 4px 5px; } .odd {background-color: #fcf; } .odd td {border-bottom: 1px solid #cef; } a { text-decoration:none; color: #000;}"$
Erel B4X founder Staff member Licensed User Longtime User Oct 1, 2017 #4 A simple option is to use TableView or FlexibleTable: https://www.b4x.com/android/forum/threads/class-tableview-supports-tables-of-any-size.19254/#content Upvote 0
A simple option is to use TableView or FlexibleTable: https://www.b4x.com/android/forum/threads/class-tableview-supports-tables-of-any-size.19254/#content