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


## Description

> Macro (excerpt)
> 
> Gadget instance on given dashboard

Returns the gadget on the specific dashboard.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetDashboardGadgetById(dashboardId, gadgetId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | dashboardGadgetById(dashboardId, gadgetId) |

## Parameters

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

## Return Type

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

Gadget instance, with column / row coordinates, color,...

## See also

> Macro (contentbylabel)