Static
Private
envStatic
getStatic
getStatic
getStatic
getStatic
Private
getStatic
getStatic
getStatic
getStatic
getStatic
getStatic
Private
isStatic
navigateDomo Apps have sandbox restrictions preventing the app from opening a new browser tab when following links. As such, standard links will not work as expected inside Domo Apps.
<a href="www.google.com" target="_blank">Will Not Work</a>
If you're wanting to control the main browser you'll need to use this navigate
function.
<button onclick="openTab('www.google.com')">Open a new Window</button>
<button onclick="useCurrentTab('www.google.com')">Use Current Window</button>
<script>
function openTab(url) {
domo.navigate(url);
}
function useCurrentTab(url) {
domo.navigate(url, false);
}
</script>
Static
onDomo Apps behave like standard cards in the fact that they'll automatically reload each time the underlying datasets are updated. Depending on the app, this could have a negative impact on the user experience of your app.
This function allows you to listen for the data update events and control how your app behaves when the dataSets are updated.
import { DomoClient as domo } from @domoinc/toolkit;
import Query from @domoinc/query;
domo.onDataUpdate((alias) => {
console.info(`${alias} just updated`, new Date().getTime());
// now get the latest data and handle as you'd like
(new Query()).get(alias).then((data) => {
// do something with the data
console.table(data); *
});
});
Static
onStatic
Private
wrapStatic
writeGenerated using TypeDoc
Utilities for helping your app interact with the Domo environment.
Basic Usage