[FREE] TableViewer - fully style customized to show table data

I have make another version of TableViewer, it's a package of Webviewer and Javascript and CSS.
so you can set up the style as you wish, if you know some CSS knowledge.

Alll Blocks

Init the extension

image-20221005142959876
layout can be vertical arrangement or horizontal arrangement.
No need for scroll arrangement, since this extension can handle the scrolling.

SetData

image-20221005143010573
data should be a LIST OF LIST.

SetStyle

SetStyleSheet

image-20221010185548477
now the sheet socket can accept:

  1. style sheet like 'th{background-color:lightblue; position:sticky; top:0}'
  2. online css file path like 'http://your.domain.com/cssfile.css'
  3. local css file, like '//cssfile.css' (for from assets) or 'cssfile.css' (for from ASD)

SetClass

image
className should come from the sheet in the SetStyleSheet method.

SetJavaScript

image
Add javaScript to header of the HTML.
No take effect before call ShowTable

ClearStyle

image

ShowTable

image-20221010185604046

ScrollTo


smooth: true or false

RunJs

image
Take effect immediately. No need to call ShowTable again.

SetStyleWithJs


Take effect immediately. No need to call ShowTable again.

image-20221010190719285
image-20221010190705454
image-20221010190101719

image



Sample blocks

1. basic usage:


2. fix first row on top.


Some useful SetStyle:

set outer margin of table

set background-color of 2nd row:

set font-size of all odd column:

set border-width of cell at row 3 column 3:

Download

for more information please check here:

Useful tutorials in this thread:

Most of them from @TIMAI2 . Big thanks to him.

filter the data with textbox :
过滤数据

fix the header, and make the header with border:
固定表头,并让表头有边框

fix the left column:
固定左边1列

change the order of column:
更换列的顺序

set the table to match to the width of the data:

show a table with image from base64:

show table in cardview styling:

show table as spinner looklike:

26 Likes
Table view in graphical mode
Help on TableView Extension by ken
Listpicker: how do I change color for a VISITED item in a listpicker (where each item is linked to a url)
How can put color in tableview if "word" = yes?
Showing error message in table view
Simple search button for list view reading (.csv)
How do you make the list scroll automatically and the words can change color when the word is pronounced
Error make table using webvieuw
Lists and variables
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
Get Data Spread sheet after Selection From to To Date
get data by comparing the current time with data from a table
Tinydb to tableviewer versi 6
How do you create a table (grid) to edit or delete items
MIT App Inventor and 100+ esp32, how could I do this?!
Web page not available
Please help me to view this data in table form in app
Query- is theres a way to delete specific data in using the extension tableview by ken nichols
Polar Plot (Polar Graph)
No puedo visualizar tabla en un web view
How can I recreate this table?Thank you very much
Liste görüntüleyici acil yardım (List viewer emergency help)
Help with csv problem
Blurry image Problem
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
formatting output on screen
How do you create a table (grid) to edit or delete items
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
Runtime error only when build the app, Tableview extension by Ken
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
[REBORN !] TableView Extension Versions 3&4 (pre nb191) and 5 by @Ken
Sudoku with Tableviewer
Fixed-width column divisions within listview?
Add Row Automatically
FAQ Section: Lists
How do you create table from Firebase JSON data?
When I call to clear the list, I want it to be cleared of all data
Retrieve data from fire base into table
Polar Plot (Polar Graph)
Read CSV and view in Table
Help with tableview and firebase
Create Table from JSON Web Response
Displaying a table from google sheets but I dont know how to change the colour of the background to fit my app
Unable to receive the data from google sheet
Need help on how I can create a separate header and use it on any list?
How Do You Count CSV format Row Data Length of List For Serial Number?
[GUIDE] Show table view in WebViewer, and custom styles
WebViewer - Beginner needs help
How do I display my firebase data as a list?
Recherche la version 2 de CustomListPicker
I need help in combining these two sets of block (i am still a newbiew)
How can i show the spreadsheet all columns and rows?
Dendritas tabel 1
About scrollable list
Creating an editable and storable monthly table
Design advice for long pick list
Data set problem
How i can immobilize a row in HTML table with WebViewer
:bar_chart: [Free] ChartMakerPlus - an extension to make google charts
Delete only the last 2 data in all listview records
Change Background Color of Items in List picker
Which Layout instead of TableArrangement?
How do you Display Images Alongside Text and Dates in a ListView in MIT App Inventor?
How do you display multiple choice data in a table?
Populate a tableview from textfile containing a list of names
Runtime Error:No static method setFontTypeface
Read repeated data in google sheet?
How can i create a calendar? assigning color to calendar cells. how can i do it
Move row of several listview arranged in parallel at the same time
Tengo un problema con la extracción de datos de google sheets a mi aplicacion en mit app inventor
Runtime error only when build the app, Tableview extension by Ken
Show repeated items in list?
Bring a selection into view after triggering a selection
Problem with TableView Extension
TableView with WebViewer, JavaScript and CSS. Helped by chat.openai GPT. Perplexity
Hello, How do I get my data out of an array and place them in their respective textboxes? I am pulling the data from mysql database
Align information in a listview

Built-in properties not displaying ?

You show an html file, how is this used with the extension? (or does this simply show the html generated from the data?)

1 Like

Sorry, I forget to mention the value of the property should be same as in CSS:

the html picture is only to show the structure of the html behind the table, then you will know how to write the style/css to change table/tr/td etc.

3 Likes

Works fine, thanks

Worked up a solution for this:

Do you know of a better approach ?

3 Likes

[Feature Request]
With your table click function, it would be good to return the entire row text for all columns as well.

I only know this method.

for entire row data, you may use the "select list item" to pick data from original data list.

and i am considering to add a block to combine nearby cells, which will make this entire row data very complicated.

1 Like

Another example which "answers" this question:

so much easier :smiley:

2 Likes

I'm trying to show a csv with many columns, how can I set horizontal scroll ?

Just drag left/right, should be scrollable vert/horiz automatically

[Feature request]
Sticky header row

found this:

but requires a th row.

Tried with tr:nth-child(1) but nothing happened

1 Like

Some blocks for table styling (there are 8columns, 5 to scroll to....

3 Likes

Thank you Tim, solved with

1 Like

With these blocks I can set the selected cell background color, how can I restore the previous color after selecting another cell? I can save row and col but the color ?

would the original colour be known, e.g. the one you set when drawing the table ?

v2 is coming, pls check first post.

now is possible. it looks like th is not necessary, but thead is.
I have add a sample at 1st post.

now it's possible to remove the style you already setup last time, just to set the value to "" (empty string) using SetStyle block, then ShowTable.

2 Likes

i can't show my table in the table viewer


@KhuBann

now "Index: 7, Size: 7
Note: You will not see another error reported for 5 seconds."