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


## Description

> Macro (excerpt)
> 
> Updates a gadget

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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admUpdateGadgetInDashboard(dashboardId, gadget) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | updateGadgetInDashboard(dashboardId, gadget) |

## 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 updated gadget instance, null if update failed

## See also

> Macro (contentbylabel)