Defining Widget Code
Widget code should be defined as well-formed HTML code, including DOCTYPE definition. An easy example that simply displays "Hello World!" would be:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
Widgets are containers in which generic, web-based content such as Javascript can be defined. Note that this raises the complexity of rendering a spreadsheet report in the browser. The widget content can be very complex depending on the use case, but not all forms of code can work when embedded in spreadsheet reports, which themselves already are complex applications. For example, ES6 syntax is not supported. So, in practice it can happen that specific widget designs may not be supported, especially when involving manipulation of the document object model (DOM).
Updated February 7, 2024