Internationalisation
Bundled Plugins API
generate
Functions for Generating HTML UI Items

API Overview

API Documentation

Functions

button

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

checkbox

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

heading

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

text

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
Last modified 1mo ago
Export as PDF
Copy link