chore: update templates to use inline ext (#1058)

* chore: update templates to use inline ext

* chore: update script template
This commit is contained in:
Tobias Åström
2023-01-23 16:27:16 +01:00
committed by GitHub
parent 1a62ad9e24
commit 1bec44c0a6
8 changed files with 78 additions and 33 deletions

View File

@@ -0,0 +1,11 @@
export default function ext(/* galaxy */) {
return {
support: {
snapshot: false,
export: true,
sharing: false,
exportData: true,
viewData: true,
},
};
}

View File

@@ -2,15 +2,24 @@ import { useElement, useLayout, useEffect } from '@nebula.js/stardust';
import properties from './object-properties';
import data from './data';
import ext from './ext';
import { render, teardown } from './components/root';
export default function supernova(/* env */) {
/**
* Entrypoint for your sense visualization
* @param {object} galaxy Contains global settings from the environment.
* Useful for cases when stardust hooks are unavailable (ie: outside the component function)
* @param {object} galaxy.anything Extra environment dependent options
* @param {object=} galaxy.anything.sense Optional object only present within Sense,
* see: https://qlik.dev/libraries-and-tools/nebulajs/in-qlik-sense
*/
export default function supernova(galaxy) {
return {
qae: {
properties,
data,
},
ext: ext(galaxy),
component() {
const el = useElement();
const layout = useLayout();