How to create a gadget showing an URL?

EN | ES

This tutorial will teach you how to create a gadget template that will ask for a URL and will show you the content of this URL inside the gadget.

To do this, we will start by going to the list of gadgets and click on create gadget template:

 

We assign an identifier and a description:

We write this code:

 

<iframe src="" height="100%" width="100%"> <p>Your browser does not support iframes.</p> </iframe>

Drag the label inside the quotes src="" to define a parameter that will be the one that takes the text of the url that will be loaded.

 

This would be the result.

<iframe src="<!--label-osp name="url" type="text"-->" height="100%" width="100%"> <p>Your browser does not support iframes.</p> </iframe>

You can change the name of the parameter in this case in name = ””, and name it as URL.

Save the created gadget template and now create a dashboard to use it.

Add a template gadget, and select the template gadget you created earlier.

When creating it, it will ask you for the parameter you just defined. In this case, select the “visualize openflights data” dashboard.

To obtain the dashboard URL, go to the list of dashboards and click on this icon on the dashboard whose URL you want to know.

From the URLs that appear, copy this one:

After pressing OK, you will see the gadget loading the indicated URL: