1

Spring 19 introduced new lightning:unsavedChanges component, which works very nicely. However, I would need to manage buttons on modal that is shown when user is trying to navigate to some other page inside SF: enter image description here

My idea is that this could be done via options argument of setUnsavedChanges function. However, the only documented parameter is label. Is there any way, how I can know, which parameters are available?

3
  • Sorry what you mean to "manage" buttons? Do you need to rename them? I don't think it is possible. setUnsavedChanges is to indicate that your state is dirty and optionally indicate why. If you wanna fire specific callbacks on save or discard, there are ondiscard and onsave params?
    – dzh
    Commented Feb 27, 2019 at 23:04
  • I meant more like if it's possible to remove 'Save' button, cause I was too lazy to write logic for it :D Anyway, I had no other choice. But it would be nice, if we could decide which buttons should be visible. Commented Feb 27, 2019 at 23:22
  • This would be great, let us know if you ever find a solution!
    – sv-alex
    Commented Nov 14, 2019 at 14:23

0

You must log in to answer this question.

Browse other questions tagged .