@PublicApi public class DashboardItemRepresentation extends Object
Dashboard items can take one of three forms:
In case of local dashboard items, a jsonRepresentation will be returned which can be used to easily interact with the dashboard-plugin JavaScript API.
| Modifier and Type | Method and Description |
|---|---|
static DashboardItemRepresentation |
dashboardItem(String amdModule,
String html,
String jsonRepresentation) |
io.atlassian.fugue.Option<String> |
getAmdModule()
Returns a JavaScript AMD module that renders the dashboard item.
|
io.atlassian.fugue.Option<String> |
getGadgetUrl()
Open social gadget URL
|
io.atlassian.fugue.Option<String> |
getHtml()
Returns a verbatim html which represents the dashboard item.
|
io.atlassian.fugue.Option<String> |
getJsonRepresentation()
It is defined in case of local dashboard items and contains a stringified JSON object.
|
static DashboardItemRepresentation |
openSocialGadget(String gadgetUrl) |
public io.atlassian.fugue.Option<String> getJsonRepresentation()
Json representation contains the following fields:
public io.atlassian.fugue.Option<String> getAmdModule()
public io.atlassian.fugue.Option<String> getHtml()
public io.atlassian.fugue.Option<String> getGadgetUrl()
public static DashboardItemRepresentation dashboardItem(@Nullable String amdModule, @Nullable String html, @Nonnull String jsonRepresentation)
public static DashboardItemRepresentation openSocialGadget(@Nonnull String gadgetUrl)
Copyright © 2024 Atlassian. All rights reserved.