[wip]fix: use svelte component for optionsWidget

This commit is contained in:
Dhruv Ahuja
2023-07-06 09:16:26 +05:30
parent 63dc2a4cb6
commit 521c4938ed
4 changed files with 14 additions and 9 deletions
+3 -1
View File
@@ -4,6 +4,7 @@ import { Transform, Type, plainToClass } from "class-transformer";
import { type IconName, type IconSize } from "@graphite/utility-functions/icons";
import { type WasmEditorInstance, type WasmRawInstance } from "@graphite/wasm-communication/editor";
import WidgetLayout from "~src/components/widgets/WidgetLayout.svelte";
export class JsMessage {
// The marker provides a way to check if an object is a sub-class constructor for a jsMessage.
@@ -932,7 +933,8 @@ export class PopoverButton extends WidgetProps {
@Transform(({ value }: { value: string }) => value || undefined)
tooltip!: string | undefined;
options_widget: WidgetLayout | undefined;
optionsWidget: WidgetLayout = defaultWidgetLayout();
layoutTarget: unknown = undefined;
}
export type RadioEntryData = {