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" "">
<html xmlns="">


  <p>Hello World!</p>


Widgets are containers, in which generic, web-based content such as javascript can be defined. Note that this raises the complexity of rendering a the spreadsheet report in the browser. The widget content can be very complex depending on the usecase, but not all forms of code can work when embedded in spreadsheet reports which themselves already are complex applications. So, in practice it can happen that specific widget designs can not be supported, especially when involving manipulation of the document object model (DOM).