---
title: "admAddGadgetToDashboard"
canonical: "https://support.appfire.com/space/PSJC/747801902/admAddGadgetToDashboard"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admAddGadgetToDashboard(dashboardId, gadget) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | addGadgetToDashboard(dashboardId, gadget) |

## Description

> Macro (excerpt)
> 
> Adds a gadget to a dashboard

Adds a gadget to the specified dashboard. You must fill in the row, column, color,...

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| dashboardId | string | Yes | The dashboard ID |
| gadget | JGadget | Yes | The gadget |

## Return Type

**[JGadget](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

The added gadget instance, null if add failed

## See also

> Macro (contentbylabel)