Start a new topic
Solved

Assistance with Interface API to show modal

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.

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


1 person likes this
Great! Thanks!
Login or Signup to post a comment