© 2026 Hedgehog Software, LLC
import ItemInput from "~/components/item/ItemInput.svelte"; <script> function updateItem(item) { item.update({ system: item.system }); } </script> <TextInput bind:value="{item.system.quantity}" on:change="{updateItem(item)}" />
<script> function updateItem(item, index) { $doc.system.items[index].quantity = item.system.quantity; $doc.update({ system: $doc.system, flags: $doc.flags, name: $doc.name, }); } </script> <TextInput bind:value="{item.system.quantity}" on:change="{updateItem(item, index)}" />
function updateItem(item, index) { const actor = $doc; let Item = actor.items.find((i) => i.name === item.name); Item.system.quantity = item.system.quantity; console.log(Item.system.quantity); Item.update({ quantity: Item.system.quantity }); }
TJSinputText
import { TJSinputText } from "@typhonjs-fvtt/svelte-standard/component/standard/form/input";
Missing "./component/standard/form/input" export in "@typhonjs-fvtt/svelte-standard" package
Join the Discord to ask follow-up questions and connect with the community
219 Members