Skip to main content
Question

Confirmation modal for plugin?


Mastro
  • New Participant
  • 6 replies

Hi there, I’m building first plugin that allows to manage layers as class names, sort of it. I’d like to implement a confirmation modal when the user decide to delete an item, the classic “Are you sure you want to delete this?”. Now I’m not sure how to implement such behavior. Any help?

This topic has been closed for replies.

2 replies

jak_e
Figmate
  • Figmate
  • 28 replies
  • April 25, 2023

best advice here would be to do the confirmation inside of the plugin ui window. you would provide your own style for it and you could have it take over the plugin ui window if you wanted. you cant have a confirmation leave that iframe though or present a confirmation dialog over the figma app. it would stay inside the iframe’d plugin ui area.


Mastro
  • Author
  • New Participant
  • 6 replies
  • April 25, 2023

Thanks mate for your reply. So best advice in term of components would be some sort of tooltip or popover, for sure something that will stay into the iframe, got it thanks!


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