ConvertTableToHTML

Converts a given array to an HTML table

javascript · Common Scripts

Details

IDConvertTableToHTML
Languagejavascript
From Version5.0.0
TagsUtility

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
commonfields:
  id: ConvertTableToHTML
  version: -1
name: ConvertTableToHTML
script: ''
type: javascript
tags:
- Utility
comment: Converts a given array to an HTML table
system: true
enabled: true
args:
- name: table
  default: true
  description: The table to convert to HTML
  isArray: true
- name: context_key
  defaultValue: HTMLTable
  description: "The context key for the converted HTML table (default is: HTMLTable)."
- name: title
  description: The optional title for the table
- name: headers
  description: The headers for the HTML table.
  isArray: true
outputs:
- contextPath: HTMLTable
  description: The HTML table we created from the array
scripttarget: 0
fromversion: 5.0.0
tests:
- ConvertTableToHTML - TEST