openblocks
openblocks copied to clipboard
Set Table columns or Regenerate table columns from code
https://gist.github.com/meowcat/12e22150f8abf8fc364f951b236e46bc
I am working on a "CSV editor" module. Right now this works with a WebDAV enabled server.
-
Module input is server and path
-
GET/PUT reads/writes the CSV from server, Papa Parse goes CSV<->JSON
-
(Right now there is no login etc and only intended for local use)
-
A Table view displays the table
-
An "Edit" column opens a JSON Schema form modal
-
the JSON Schema is generated from the currently selected row
The only thing missing is: I cannot update the columns if the users' format changes. I would need to:
- either have a way to trigger "regenerate columns" with code
- or a way to set columns directly.