Skip to main content
Answer

Referencing widgets in plugins

  • September 9, 2023
  • 2 replies
  • 375 views

Julian_Oczkowski

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!

Best answer by James_Yang

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.

This topic has been closed for replies.

2 replies

James_Yang
Figmate
  • Figmate
  • Answer
  • September 11, 2023

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

Thank you James_Yang that makes perfect sense.