Source
headers = args.headers ? args.headers.split(",") : []; if (args.table) { ec = {}; ec[args.context_key || 'HTMLTable'] = tableToHTML(args.title, args.table, headers); return { Type: entryTypes.note, Contents: '', ContentsFormat: formats.text, HumanReadable: tableToMarkdown(args.title, args.table, headers), EntryContext: ec }; } return 'Data does not exist';
README
Converts an array in to a HTML table.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Utility |
Inputs
| Argument Name | Description |
|---|---|
| table | The table to convert to HTML. |
| title | The optional title for the table. |
| context_key | The context key for the converted HTML table (default is: HTMLTable). |
Outputs
| Path | Description | Type |
|---|---|---|
| HTMLTable | The HTML table that was created from the array. | Unknown |