What is generic-table?
Generic-table is a JSON schema and client-side JS file that makes it easy to display live, table structured HTML over a ws link.
An example plugin and index.html using it are provided.
Enabling for build
Enable at CMake with -DLWS_WITH_PLUGINS=1
Generic-table JSON
Column layout
When the ws connection is established, the protocol should send a JSON message describing the table columns. For example
2 " {\"name\": \"Date\"},"
3 " {\"name\": \"Size\", \"align\": \"right\"},"
4 " {\"name\": \"Icon\"},"
5 " {\"name\": \"Name\", \"href\": \"uri\"},"
6 " {\"name\": \"uri\", \"hide\": \"1\" }"
- This describes 5 columns
- Only four columns (not "uri") should be visible
- "Name" should be presented as a clickable link using "uri" as the destination, when a "uri" field is presented.
- "Size" field should be presented aligned to the right
Table data
The