Getting started with the GUI and understanding element root
It's been a while, but I've been working on my Knowledge Recalled module since V11 is out, and my friend and I have made progress with getting and storing the data that we need. I'll be honest I'm struggling a little with Typhon for building my GUI. I'm not sure if I'm just lacking understanding of Svelte or what, but I think if I can get may data presented in the gui it'll be a lot easier for me to tinker around to figure out a little more of what is going on. If someone could maybe give me a suggestion or too.
The approach I'm taking involves using my GMJournalAppShell as the place where I'm going to pull in all of the other svelte components.
<script> import { flip } from 'svelte/animate'; import { ApplicationShell } from '@typhonjs-fvtt/runtime/svelte/component/core'; import { TJSDocument } from '@typhonjs-fvtt/runtime/svelte/store'; import { rippleFocus } from '@typhonjs-fvtt/svelte-standard/action'; import { TJSInput } from '@typhonjs-fvtt/svelte-standard/component'; import { createFilterQuery } from '@typhonjs-fvtt/svelte-standard/store'; import {getContext, setContext} from "svelte"; import NPCProfile from "./NPCProfile.svelte"; const { application } = getContext("#external"); let elementRoot;</script><svelte:options accessors={true} /><ApplicationShell bind:elementRoot> <NPCProfile /></ApplicationShell><style></style>
<script> import { flip } from 'svelte/animate'; import { ApplicationShell } from '@typhonjs-fvtt/runtime/svelte/component/core'; import { TJSDocument } from '@typhonjs-fvtt/runtime/svelte/store'; import { rippleFocus } from '@typhonjs-fvtt/svelte-standard/action'; import { TJSInput } from '@typhonjs-fvtt/svelte-standard/component'; import { createFilterQuery } from '@typhonjs-fvtt/svelte-standard/store'; import {getContext, setContext} from "svelte"; import NPCProfile from "./NPCProfile.svelte"; const { application } = getContext("#external"); let elementRoot;</script><svelte:options accessors={true} /><ApplicationShell bind:elementRoot> <NPCProfile /></ApplicationShell><style></style>
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community