-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi,
I'm trying to create a plugin for an image-button (a button that displays an image instead of text).
My custom plugin works, but when I register it, it breaks the folder component — after registration, the folder instance no longer has basic methods like addButton, addBinding, etc.
The plugin template has many moving parts, so I'm not sure whether I'm doing something wrong or if there's a bug in the Tweakpane core. I'd really appreciate your help!
Here's how I'm using it:
const pane = new Pane();
// That breaks the folder button below
pane.registerPlugin(TweakpaneImageButtonPlugin);
// Custom image-button
pane.addBlade({ view: "image-button", label, src });
const folder = pane.addFolder({ title: "folder" });
folder.addButton({ label: "test", title: "test" }); // Error: "folder.addButton is not a function"I've created a sandbox so you can check it out and see the error in action:
https://codesandbox.io/p/sandbox/h63s2g
Let me know if I can provide more details or if I'm missing something obvious. Thanks a lot for your time!
Metadata
Metadata
Assignees
Labels
No labels