Assistance with Interface API to show modal

  • 19 July 2019
  • 2 replies
  • 32 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 comments

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

Great! Thanks!