Skip to main content
Solved

Referencing widgets in plugins

  • September 9, 2023
  • 2 replies
  • 333 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.

View original
This topic has been closed for comments

2 replies

James_Yang
Figmate
  • Figmate
  • 82 replies
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings