/
How to create a gadget showing an URL?

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:

 

Related content

¿Cómo crear un gadget que renderice una URL?
¿Cómo crear un gadget que renderice una URL?
More like this
How to create a Gadget Template?
How to create a Gadget Template?
More like this
Custom Gadget
Custom Gadget
More like this
How to use Parameter Filters in Dashboards?
How to use Parameter Filters in Dashboards?
More like this
New Capabilities on Dashboards
New Capabilities on Dashboards
More like this
¿Cómo crear un Gadget Template?
¿Cómo crear un Gadget Template?
More like this