Skip to main content
Julian_Oczkowski
Sep 9, 2023 1:37 PM UTC
Solved

Referencing widgets in plugins

Hi all hope you are well.
I am getting into putting plugins together and I have this simple one that upon run creates a set of pages and pulls in some components from my teams library.
I am using “const firstComponentKey =” and it works great.

Wondering if I could pull in a widget automatically after plugin runs?
Thank you!

This topic has been closed for replies.
James_Yang
James_YangSolution
Figmate
Sep 11, 2023 11:20 PM UTC

You can clone existing widgets using the plugin API, but you can’t insert brand-new widgets. Inserting widgets needs to be a user-initiated action for security reasons.

2 replies

James_Yang
Figmate
James_YangSolution
Figmate
Sep 11, 2023 11:20 PM UTC

You can clone existing widgets using the plugin API, but you can’t insert brand-new widgets. Inserting widgets needs to be a user-initiated action for security reasons.

Julian_Oczkowski
Sep 12, 2023 6:19 AM UTC

Thank you James_Yang that makes perfect sense.