Skip to content

darrenswan/TestWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agendas Group Test Widget (testwidget.js)

This is an example of a test widget for the widg.io/travelgenix.io platform and demonstrates the use of Web Components (utilising the Shadow DOM), the API for retrieving settings and a watcher for the widgetsettings attribute as used by the widget editor.

index.html

This file demonstrates how a customer would add/embed the widget on the website using the both the Elements script (placed once in the header of the page using the defer attribute) and the embedding of the widget itself somewhere in the page using both the CSS class 'widgio-widget' or 'travelify-widget' used by the Elements script to identify widgets, and the widgetid attribute to identify the individual widget and retrieve the settings.

install.json

This is an example of the install.json file which defines both the page embed template and files (used by the Elements script) and the settings used by the widget editor within the Widg.io website for users to configure the widget settings.

Install.json resources:

settings.json

This is an example of how the widget settings are stored and returned by the Widget Settings API Endpoint for an individual widgetid. It is a dictionary (string, object) that returns all stored settings of a widget (excluding Account field types as these require an API enpoint for processing)

Widget Settings API:

About

This is an example of a test widget

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors