Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
75 lines (63 loc) · 6.05 KB

cp.web.generate.md

File metadata and controls

75 lines (63 loc) · 6.05 KB

docs » cp.web.generate


Functions for Generating HTML UI Items

API Overview

API Documentation

Functions

Signature cp.web.generate.button() -> string
Type Function
Description Generates a HTML Button
Parameters
  • data - Table containing the data you want to display on the Checkbox
  • customTrigger - Custom label used for JavaScript Callback
  • customWidth - Number to set the width of the button to
  • customID - Overrides the random HTML ID
Returns
  • String containing the HTML
Signature cp.web.generate.checkbox() -> string
Type Function
Description Generates a HTML Checkbox
Parameters
  • data - Table containing the data you want to display on the Checkbox
  • customTrigger - Custom label used for JavaScript Callback
  • customID - Custom ID used for the HTML objects
Returns
  • String containing the HTML
Signature cp.web.generate.dropdown() -> string
Type Function
Description Generates a HTML Dropdown
Parameters
  • title - Title to put in front of the Dropdown. Can be "".
  • data - Table containing the data you want to display on the Checkbox
  • customTrigger - Custom label used for JavaScript Callback
Returns
  • String containing the HTML
Signature cp.web.generate.heading() -> string
Type Function
Description Generates a HTML Heading
Parameters
  • data - Table containing the data you want to display on the Checkbox
Returns
  • String containing the HTML
Signature cp.web.generate.javascript(script, context) -> cp.web.html
Type Function
Description Generates a HTML Heading
Parameters
  • data - Table containing the data you want to display on the Checkbox
Returns
  • String containing the HTML
Signature cp.web.generate.setWebviewLabel() -> none
Type Function
Description Sets the WebView Label
Parameters
  • value - WebView Label as string
Returns
  • None
Signature cp.web.generate.text() -> string
Type Function
Description Generates a blank HTML
Parameters
  • data - Table containing the data you want to display.
Returns
  • String containing the HTML