Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Customize confirm dialog OK button label

    Hi Isomorphic,

    Is there a way to customize the confirm dialog (SC.confirm(String, String, BooleanCallback, Dialog)) "OK" button label through the dialogProperties or are we better off creating our own confirm dialog to handle this?

    For example, if we are confirming a "Delete" operation, we'd like to label the "OK" button "Delete". If we are confirming an "Update" operation, we'd like to label the "OK" button "Update".

    Thank you


    #2
    You would need to replace the whole buttons array, in which case the callbacks wouldn’t fire so you’d need your own.

    So we would recommend just creating a dialog directly, which you can wrap in a helper method similar to SC.confirm() but with a bonus parameter for the button title.

    Comment


      #3
      Thank you

      Comment

      Working...
      X