Skip to main content

Assistance with Interface API to show modal

  • July 19, 2019
  • 2 replies
  • 51 views

Hi Team,

I am trying to get a modal to popup on the new changes page with a bunch of matrix info and other documentation.

How do we get the interface api from here to work and get this modal to pop out?

Regards,
Lochy.

This topic has been closed for replies.

2 replies

Hi Lochy,


Please use the below code snippet in your app to trigger modal.


client.interface.trigger("showModal", {

      title: "Sample Modal",

      template: "modal.html"

}).then(function(data) {

    // data - success message

}).catch(function(error) {

    // error - error object

});


Here modal.html should be a file in your app.


Regards,

Moghana


  • Author
  • Contributor
  • July 22, 2019
Great! Thanks!